Bug #3044 cap_dshow.cpp forgotten validity check fixed.
This commit is contained in:
parent
4cf7a963a0
commit
956d8027ef
@ -3195,8 +3195,10 @@ IplImage* CvCaptureCAM_DShow::retrieveFrame(int)
|
|||||||
frame = cvCreateImage( cvSize(w,h), 8, 3 );
|
frame = cvCreateImage( cvSize(w,h), 8, 3 );
|
||||||
}
|
}
|
||||||
|
|
||||||
VI.getPixels( index, (uchar*)frame->imageData, false, true );
|
if (VI.getPixels( index, (uchar*)frame->imageData, false, true ))
|
||||||
return frame;
|
return frame;
|
||||||
|
else
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
double CvCaptureCAM_DShow::getProperty( int property_id )
|
double CvCaptureCAM_DShow::getProperty( int property_id )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user