return false in grabFrame failed in open method

This commit is contained in:
Ilya Lavrenov 2015-10-27 16:56:31 +03:00
parent 05945bf00e
commit 9e2395e7e0

View File

@ -294,11 +294,11 @@ bool CvCapture_Images::open(const char * _filename)
firstframe = offset;
// grab frame to enable properties retrieval
grabFrame();
bool grabRes = grabFrame();
grabbedInOpen = true;
currentframe = 0;
return true;
return grabRes;
}