Commit a6151029 authored by Artur Wieczorek's avatar Artur Wieczorek

Fixed MSMF video capture initialization

parent 9c91d010
......@@ -2445,11 +2445,12 @@ int videoDevice::findType(unsigned int size, unsigned int frameRate)
fmt = vd_CaptureFormats.find(size);
if( fmt != vd_CaptureFormats.end() )
FRM = fmt->second;
else if (FRM.empty())
return -1;
else
else if(!vd_CaptureFormats.empty())
FRM = vd_CaptureFormats.rbegin()->second;
if (FRM.empty())
return -1;
UINT64 frameRateMax = 0; SUBTYPEMap STMMax;
if(frameRate == 0)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment