fixed case when grabbing failed

This commit is contained in:
Ilya Lavrenov 2015-10-27 16:26:24 +03:00
parent 9d78a1ea9f
commit 05945bf00e

View File

@ -120,7 +120,7 @@ bool CvCapture_Images::grabFrame()
grabbedInOpen = false;
++currentframe;
return true;
return frame != NULL;
}
cvReleaseImage(&frame);
@ -128,7 +128,7 @@ bool CvCapture_Images::grabFrame()
if( frame )
currentframe++;
return frame != 0;
return frame != NULL;
}
IplImage* CvCapture_Images::retrieveFrame(int)