mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
make proto uses priorityRegister
This commit is contained in:
@@ -35,8 +35,6 @@ V4L2Wrapper::V4L2Wrapper(const std::string &device,
|
||||
// set the signal detection threshold of the grabber
|
||||
_grabber.setSignalThreshold( redSignalThreshold, greenSignalThreshold, blueSignalThreshold, 50);
|
||||
|
||||
_hyperion->registerPriority("V4L2", _priority);
|
||||
|
||||
// register the image type
|
||||
qRegisterMetaType<Image<ColorRgb>>("Image<ColorRgb>");
|
||||
qRegisterMetaType<std::vector<ColorRgb>>("std::vector<ColorRgb>");
|
||||
@@ -71,14 +69,21 @@ bool V4L2Wrapper::start()
|
||||
{
|
||||
bool grabber_started = _grabber.start();
|
||||
if ( ! grabber_started )
|
||||
{
|
||||
_timer.stop();
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
_hyperion->registerPriority("V4L2", _priority);
|
||||
}
|
||||
|
||||
return grabber_started;
|
||||
}
|
||||
|
||||
void V4L2Wrapper::stop()
|
||||
{
|
||||
_grabber.stop();
|
||||
_hyperion->unRegisterPriority("V4L2");
|
||||
}
|
||||
|
||||
void V4L2Wrapper::setCropping(int cropLeft, int cropRight, int cropTop, int cropBottom)
|
||||
|
Reference in New Issue
Block a user