return false in grabFrame failed in open method
authorIlya Lavrenov <ilya.lavrenov@itseez.com>
Tue, 27 Oct 2015 13:56:31 +0000 (16:56 +0300)
committerIlya Lavrenov <ilya.lavrenov@itseez.com>
Tue, 27 Oct 2015 13:56:31 +0000 (16:56 +0300)
modules/highgui/src/cap_images.cpp

index b63cc75..56e3a8d 100644 (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;
 }