Changed default grabbing flags when no xbmc checker is present

Former-commit-id: 9fabc0e570d44b301646c93b355042e1747a9183
This commit is contained in:
johan 2013-11-14 19:51:10 +01:00
parent 6d47b4c66b
commit 153e75555d
3 changed files with 2 additions and 7 deletions

View File

@ -1 +1 @@
19c49770372d19eddcd87f647455964ca57d4f57
616598d4b62e2da40b2deeca332718c00209acfb

View File

@ -72,13 +72,12 @@ void DispmanxWrapper::setGrabbingMode(const GrabbingMode mode)
case GRABBINGMODE_AUDIO:
case GRABBINGMODE_PHOTO:
case GRABBINGMODE_MENU:
case GRABBINGMODE_INVALID:
_frameGrabber->setFlags(0);
start();
break;
case GRABBINGMODE_OFF:
stop();
break;
case GRABBINGMODE_INVALID:
break;
}
}

View File

@ -133,10 +133,6 @@ int main(int argc, char** argv)
{
QObject::connect(xbmcVideoChecker, SIGNAL(grabbingMode(GrabbingMode)), dispmanx, SLOT(setGrabbingMode(GrabbingMode)));
}
else
{
dispmanx->setGrabbingMode(GRABBINGMODE_VIDEO);
}
dispmanx->start();
std::cout << "Frame grabber created and started" << std::endl;