MSMF: fixed issue with camera format selection
This commit is contained in:
@@ -498,7 +498,7 @@ public:
|
||||
best = *i;
|
||||
break;
|
||||
}
|
||||
if (i->second.isBetterThan(best.second, newType))
|
||||
if (best.second.isEmpty() || i->second.isBetterThan(best.second, newType))
|
||||
{
|
||||
best = *i;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user