mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 19:20:28 +08:00
fixed case when grabbing failed
This commit is contained in:
parent
9d78a1ea9f
commit
05945bf00e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user