Merge pull request #970 from asmorkalov:dshow_valid_check_fix

This commit is contained in:
Roman Donchenko 2013-06-10 15:06:14 +04:00 committed by OpenCV Buildbot
commit 55e83b8d18

View File

@ -3195,8 +3195,10 @@ IplImage* CvCaptureCAM_DShow::retrieveFrame(int)
frame = cvCreateImage( cvSize(w,h), 8, 3 );
}
VI.getPixels( index, (uchar*)frame->imageData, false, true );
return frame;
if (VI.getPixels( index, (uchar*)frame->imageData, false, true ))
return frame;
else
return NULL;
}
double CvCaptureCAM_DShow::getProperty( int property_id )