mirror of
https://github.com/opencv/opencv.git
synced 2025-06-11 03:33:28 +08:00
Merge pull request #20210 from kstuedem:fix_invalid_media_type
This commit is contained in:
commit
d332f33346
@ -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