We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c0b70b commit 749bd80Copy full SHA for 749bd80
modules/videoio/src/cap_v4l.cpp
@@ -1033,15 +1033,16 @@ bool CvCaptureCAM_V4L::grabFrame()
1033
return false;
1034
}
1035
1036
+ // No need to skip this if the first read returns false
1037
+ /* preparation is ok */
1038
+ FirstCapture = false;
1039
+
1040
#if defined(V4L_ABORT_BADJPEG)
1041
// skip first frame. it is often bad -- this is unnotied in traditional apps,
1042
// but could be fatal if bad jpeg is enabled
1043
if (!read_frame_v4l2())
1044
1045
#endif
-
- /* preparation is ok */
- FirstCapture = false;
1046
1047
// In the case that the grab frame was without retrieveFrame
1048
if (bufferIndex >= 0)
0 commit comments