mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 12:40:05 +08:00
Merge pull request #20211 from kstuedem:fix_dshow_memory_leak
This commit is contained in:
commit
61e30c15a9
@ -2496,7 +2496,10 @@ static void findClosestSizeAndSubtype(videoDevice * VD, int widthIn, int heightI
|
||||
int tempH = 999999;
|
||||
|
||||
//Don't want to get stuck in a loop
|
||||
if(stepX < 1 || stepY < 1) continue;
|
||||
if(stepX < 1 || stepY < 1){
|
||||
MyDeleteMediaType(pmtConfig);
|
||||
continue;
|
||||
}
|
||||
|
||||
//DebugPrintOut("min is %i %i max is %i %i - res is %i %i\n", scc.MinOutputSize.cx, scc.MinOutputSize.cy, scc.MaxOutputSize.cx, scc.MaxOutputSize.cy, stepX, stepY);
|
||||
//DebugPrintOut("min frame duration is %i max duration is %i\n", scc.MinFrameInterval, scc.MaxFrameInterval);
|
||||
|
Loading…
Reference in New Issue
Block a user