videoio(dshow) fix incompatible media type left set on video device

pull/20210/head
Kai Stüdemann 4 years ago
parent c34445a496
commit 636db09d73
  1. 3
      modules/videoio/src/cap_dshow.cpp

@ -2609,7 +2609,8 @@ static bool setSizeAndSubtype(videoDevice * VD, int attemptWidth, int attemptHei
return true;
}else{
VD->streamConf->SetFormat(tmpType);
if( tmpType != NULL )MyDeleteMediaType(tmpType);
if( VD->pAmMediaType != NULL)MyDeleteMediaType(VD->pAmMediaType);
VD->pAmMediaType = tmpType;
}
return false;

Loading…
Cancel
Save