Commit 219ef95d authored by Maksim Shabunin's avatar Maksim Shabunin

MSMF: fixed issue with camera format selection

parent 4d0f1354
...@@ -498,7 +498,7 @@ public: ...@@ -498,7 +498,7 @@ public:
best = *i; best = *i;
break; break;
} }
if (i->second.isBetterThan(best.second, newType)) if (best.second.isEmpty() || i->second.isBetterThan(best.second, newType))
{ {
best = *i; best = *i;
} }
......
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