From 1f2f5a5ea92983e7d83e3324ae3266f19757f0d8 Mon Sep 17 00:00:00 2001 From: reimar Date: Tue, 12 Dec 2006 19:17:47 +0000 Subject: [PATCH] Add missing buf.memory = V4L2_MEMORY_MMAP; initializations. Patch by Laurent Pinchart {laurent pinchart skynet be} git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21603 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/tvi_v4l2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stream/tvi_v4l2.c b/stream/tvi_v4l2.c index a79a42468e..bf9ad46cfe 100644 --- a/stream/tvi_v4l2.c +++ b/stream/tvi_v4l2.c @@ -876,6 +876,7 @@ static int uninit(priv_t *priv) /* unqueue all remaining buffers */ memset(&buf,0,sizeof(buf)); buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; + buf.memory = V4L2_MEMORY_MMAP; while (!ioctl(priv->video_fd, VIDIOC_DQBUF, &buf)); } @@ -1395,6 +1396,7 @@ static void *video_grabber(void *data) memset(&buf,0,sizeof(buf)); buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; + buf.memory = V4L2_MEMORY_MMAP; ret = ioctl(priv->video_fd, VIDIOC_DQBUF, &buf); if (ret < 0) { @@ -1411,6 +1413,7 @@ static void *video_grabber(void *data) for (i = 0; i < priv->mapcount; i++) { memset(&buf,0,sizeof(buf)); buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; + buf.memory = V4L2_MEMORY_MMAP; buf.index = i; ret = ioctl(priv->video_fd, VIDIOC_QUERYBUF, &buf); if (ret < 0) {