MSMF: fixed issue with camera format selection

pull/16721/head
Maksim Shabunin 5 years ago
parent 4d0f13544d
commit 219ef95dd8
  1. 2
      modules/videoio/src/cap_msmf.cpp

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

Loading…
Cancel
Save