Mercurial > mplayer.hg
changeset 21587:f671a3aa7456
Add missing buf.memory = V4L2_MEMORY_MMAP; initializations.
Patch by Laurent Pinchart {laurent pinchart <at> skynet be}
author | reimar |
---|---|
date | Tue, 12 Dec 2006 19:17:47 +0000 |
parents | 5a1e078720e7 |
children | 490dc8ba9ea4 |
files | stream/tvi_v4l2.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/tvi_v4l2.c Tue Dec 12 19:13:48 2006 +0000 +++ b/stream/tvi_v4l2.c Tue Dec 12 19:17:47 2006 +0000 @@ -876,6 +876,7 @@ /* 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 @@ 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 @@ 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) {