Skip to content

Commit 0e60b26

Browse files
committed
Merge pull request opencv#8773 from kvaghel1:Issue-8763
2 parents 17b89b2 + 6fd9edc commit 0e60b26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/videoio/src/cap_v4l.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -861,12 +861,12 @@ static int read_frame_v4l2(CvCaptureCAM_V4L* capture) {
861861
//printf("got data in buff %d, len=%d, flags=0x%X, seq=%d, used=%d)\n",
862862
// buf.index, buf.length, buf.flags, buf.sequence, buf.bytesused);
863863

864-
if (-1 == ioctl (capture->deviceHandle, VIDIOC_QBUF, &buf))
865-
perror ("VIDIOC_QBUF");
866-
867864
//set timestamp in capture struct to be timestamp of most recent frame
868865
capture->timestamp = buf.timestamp;
869866

867+
if (-1 == ioctl (capture->deviceHandle, VIDIOC_QBUF, &buf))
868+
perror ("VIDIOC_QBUF");
869+
870870
return 1;
871871
}
872872

0 commit comments

Comments
 (0)