[Mplayer-cvslog] CVS: main/libmpdemux tvi_v4l.c,1.16,1.17

Alex Beregszaszi alex at mplayer.dev.hu
Mon Dec 24 14:56:48 CET 2001


Update of /cvsroot/mplayer/main/libmpdemux
In directory mplayer:/var/tmp.root/cvs-serv10576

Modified Files:
	tvi_v4l.c 
Log Message:
fixed video syncing

Index: tvi_v4l.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/tvi_v4l.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- tvi_v4l.c	24 Dec 2001 11:01:16 -0000	1.16
+++ tvi_v4l.c	24 Dec 2001 13:56:43 -0000	1.17
@@ -757,9 +757,11 @@
 	mp_msg(MSGT_TV, MSGL_ERR, "ioctl mcapture failed: %s\n", strerror(errno));
 	return(0);
     }
-    
-    if (ioctl(priv->fd, VIDIOCSYNC, &priv->buf[frame].frame) == -1)
-	mp_msg(MSGT_TV, MSGL_ERR, "ioctl sync failed: %s\n", strerror(errno));
+
+    while (ioctl(priv->fd, VIDIOCSYNC, &priv->buf[frame].frame) < 0 &&
+	(errno == EAGAIN || errno == EINTR));
+	mp_dbg(MSGT_TV, MSGL_DBG3, "picture sync failed\n");
+
     priv->queue++;
     
     mp_dbg(MSGT_TV, MSGL_DBG3, "mmap: %p + offset: %d => %p\n",




More information about the MPlayer-cvslog mailing list