MSMF: fixed issue with camera format selection

This commit is contained in:
Maksim Shabunin 2020-03-02 15:33:42 +03:00
parent 4d0f13544d
commit 219ef95dd8

View File

@ -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;
}