mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 12:22:51 +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;
|
return true;
|
||||||
}else{
|
}else{
|
||||||
VD->streamConf->SetFormat(tmpType);
|
VD->streamConf->SetFormat(tmpType);
|
||||||
if( tmpType != NULL )MyDeleteMediaType(tmpType);
|
if( VD->pAmMediaType != NULL)MyDeleteMediaType(VD->pAmMediaType);
|
||||||
|
VD->pAmMediaType = tmpType;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user