xawtv: update to version 3.95
[openembedded.git] / recipes / xawtv / xawtv-3.95 / 16_xawtv_v4l2_buffer.patch
1 diff -urNad xawtv-3.95.dfsg.1~/libng/plugins/drv0-v4l2.c xawtv-3.95.dfsg.1/libng/plugins/drv0-v4l2.c
2 --- xawtv-3.95.dfsg.1~/libng/plugins/drv0-v4l2.c        2007-10-16 19:23:11.111287329 +0200
3 +++ xawtv-3.95.dfsg.1/libng/plugins/drv0-v4l2.c 2007-10-16 19:26:14.641746134 +0200
4 @@ -768,6 +768,7 @@
5      /* get it */
6      memset(&buf,0,sizeof(buf));
7      buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
8 +    buf.memory = V4L2_MEMORY_MMAP;
9      if (-1 == xioctl(h->fd,VIDIOC_DQBUF,&buf, 0))
10         return -1;
11      h->waiton++;