mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
videoio(dshow) fix incompatible media type left set on video device
This commit is contained in:
parent
c34445a496
commit
636db09d73
@ -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…
Reference in New Issue
Block a user