mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Support Events for Grabbers generically
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
|
||||
#include <grabber/VideoWrapper.h>
|
||||
|
||||
#include <events/EventHandler.h>
|
||||
|
||||
// qt includes
|
||||
#include <QTimer>
|
||||
|
||||
@@ -24,8 +22,6 @@ VideoWrapper::VideoWrapper()
|
||||
connect(&_grabber, SIGNAL(readError(const char*)), this, SLOT(readError(const char*)), Qt::DirectConnection);
|
||||
|
||||
connect(&_grabber, SIGNAL(readError(const char*)), this, SLOT(readError(const char*)), Qt::DirectConnection);
|
||||
|
||||
QObject::connect(EventHandler::getInstance(), &EventHandler::signalEvent, this, &VideoWrapper::handleEvent);
|
||||
}
|
||||
|
||||
VideoWrapper::~VideoWrapper()
|
||||
@@ -44,11 +40,6 @@ void VideoWrapper::stop()
|
||||
GrabberWrapper::stop();
|
||||
}
|
||||
|
||||
void VideoWrapper::handleEvent(Event event)
|
||||
{
|
||||
_grabber.handleEvent(event);
|
||||
}
|
||||
|
||||
void VideoWrapper::handleSettingsUpdate(settings::type type, const QJsonDocument& config)
|
||||
{
|
||||
if(type == settings::V4L2 && _grabberName.startsWith("V4L2"))
|
||||
|
Reference in New Issue
Block a user