aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkraxel <kraxel>2007-05-14 09:56:18 (GMT)
committerkraxel <kraxel>2007-05-14 09:56:18 (GMT)
commit8d9e8533080a798cb7214ff2e0704957eb9d74fa (patch)
tree902493728152f618e55cfab25bb2fe8da5454e68
parent42ec5bdb61c252732dd8a067702284f3e852d96c (diff)
v4l2 fix (Laurent Pinchart)
-rw-r--r--libng/plugins/drv0-v4l2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libng/plugins/drv0-v4l2.c b/libng/plugins/drv0-v4l2.c
index 4de22ac..45fcbcc 100644
--- a/libng/plugins/drv0-v4l2.c
+++ b/libng/plugins/drv0-v4l2.c
@@ -874,6 +874,7 @@ v4l2_waiton(struct v4l2_handle *h)
/* get it */
memset(&buf,0,sizeof(buf));
buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
+ buf.memory = V4L2_MEMORY_MMAP;
if (-1 == xioctl(h->fd,VIDIOC_DQBUF,&buf, 0))
return -1;
h->waiton++;

Privacy Policy