[opencv] 47/53: Fix frame timestamp in VideoCapture::get
Nobuhiro Iwamatsu
iwamatsu at moszumanska.debian.org
Sun Aug 27 23:27:07 UTC 2017
This is an automated email from the git hooks/post-receive script.
iwamatsu pushed a commit to annotated tag 2.4.13.3
in repository opencv.
commit 6bafc2c59861600d7f4d8798aaa537d3589a039c
Author: kvaghel1 <kvaghel1 at binghamton.edu>
Date: Mon May 22 21:22:35 2017 -0400
Fix frame timestamp in VideoCapture::get
---
modules/highgui/src/cap_v4l.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/highgui/src/cap_v4l.cpp b/modules/highgui/src/cap_v4l.cpp
index ed5c09c..5ed6d3d 100644
--- a/modules/highgui/src/cap_v4l.cpp
+++ b/modules/highgui/src/cap_v4l.cpp
@@ -1164,12 +1164,12 @@ static int read_frame_v4l2(CvCaptureCAM_V4L* capture) {
//printf("got data in buff %d, len=%d, flags=0x%X, seq=%d, used=%d)\n",
// buf.index, buf.length, buf.flags, buf.sequence, buf.bytesused);
- if (-1 == ioctl (capture->deviceHandle, VIDIOC_QBUF, &buf))
- perror ("VIDIOC_QBUF");
-
//set timestamp in capture struct to be timestamp of most recent frame
capture->timestamp = buf.timestamp;
+ if (-1 == ioctl (capture->deviceHandle, VIDIOC_QBUF, &buf))
+ perror ("VIDIOC_QBUF");
+
return 1;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git
More information about the debian-science-commits
mailing list