Commit 05945bf0 authored by Ilya Lavrenov's avatar Ilya Lavrenov

fixed case when grabbing failed

parent 9d78a1ea
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment