diff mbox

[06/10] Backport UVC fix from Fedora

Message ID 1315322996-10576-6-git-send-email-mchehab@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Mauro Carvalho Chehab Sept. 6, 2011, 3:29 p.m. UTC
From Fedora logs:
	fix #655038 - tvtime does not work with UVC webcams

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
---
 src/videoinput.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/src/videoinput.c b/src/videoinput.c
index 2102b04..a8fd829 100644
--- a/src/videoinput.c
+++ b/src/videoinput.c
@@ -294,6 +294,7 @@  uint8_t *videoinput_next_frame( videoinput_t *vidin, int *frameid )
     wait_for_frame_v4l2( vidin );
  
     cur_buf.type = vidin->capbuffers[ 0 ].vidbuf.type;
+    cur_buf.memory = vidin->capbuffers[ 0 ].vidbuf.memory;
     if( ioctl( vidin->grab_fd, VIDIOC_DQBUF, &cur_buf ) < 0 ) {
 	/* some drivers return EIO when there is no signal */
 	if( errno != EIO ) {