Fix device opening

This commit is contained in:
jfmcarreira committed 2017-03-25 03:40:32 +00:00
1 parent 7919d2a3f2
commit f43a21d810
4 files changed
+20 -12

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ std::vector<PlaYUVerSupportedFormat> StreamHandlerOpenCV::supportedReadFormats()
{
INI_REGIST_PLAYUVER_SUPPORTED_FMT;
#if( CV_MAJOR_VERSION >= 3 )
REGIST_PLAYUVER_SUPPORTED_FMT( &StreamHandlerOpenCV::Create, "Device", "/dev/" );
REGIST_PLAYUVER_SUPPORTED_ABSTRACT_FMT( &StreamHandlerOpenCV::Create, "Device", "/dev/video*" );
#endif
END_REGIST_PLAYUVER_SUPPORTED_FMT;
}