aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/xawtv/xawtv-3.95/16_xawtv_v4l2_buffer.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/xawtv/xawtv-3.95/16_xawtv_v4l2_buffer.patch')
-rw-r--r--recipes/xawtv/xawtv-3.95/16_xawtv_v4l2_buffer.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes/xawtv/xawtv-3.95/16_xawtv_v4l2_buffer.patch b/recipes/xawtv/xawtv-3.95/16_xawtv_v4l2_buffer.patch
new file mode 100644
index 0000000000..2c48aeee91
--- /dev/null
+++ b/recipes/xawtv/xawtv-3.95/16_xawtv_v4l2_buffer.patch
@@ -0,0 +1,11 @@
+diff -urNad xawtv-3.95.dfsg.1~/libng/plugins/drv0-v4l2.c xawtv-3.95.dfsg.1/libng/plugins/drv0-v4l2.c
+--- xawtv-3.95.dfsg.1~/libng/plugins/drv0-v4l2.c 2007-10-16 19:23:11.111287329 +0200
++++ xawtv-3.95.dfsg.1/libng/plugins/drv0-v4l2.c 2007-10-16 19:26:14.641746134 +0200
+@@ -768,6 +768,7 @@
+ /* 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++;