[MPlayer-cvslog] r21603 - trunk/stream/tvi_v4l2.c

reimar subversion at mplayerhq.hu
Tue Dec 12 20:17:47 CET 2006


Author: reimar
Date: Tue Dec 12 20:17:47 2006
New Revision: 21603

Modified:
   trunk/stream/tvi_v4l2.c

Log:
Add missing buf.memory = V4L2_MEMORY_MMAP; initializations.
Patch by Laurent Pinchart {laurent pinchart <at> skynet be}


Modified: trunk/stream/tvi_v4l2.c
==============================================================================
--- trunk/stream/tvi_v4l2.c	(original)
+++ trunk/stream/tvi_v4l2.c	Tue Dec 12 20:17:47 2006
@@ -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) {



More information about the MPlayer-cvslog mailing list