[Mplayer-cvslog] CVS: main/libmpdemux tvi_v4l2.c,1.5,1.6 tvi_v4l.c,1.66,1.67

Alban Bedel CVS albeu at mplayerhq.hu
Mon Sep 1 14:11:39 CEST 2003


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

Modified Files:
	tvi_v4l2.c tvi_v4l.c 
Log Message:
Fix immediatemode with mplayer (ie playing both sound and video)


Index: tvi_v4l2.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/tvi_v4l2.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- tvi_v4l2.c	31 Aug 2003 18:51:05 -0000	1.5
+++ tvi_v4l2.c	1 Sep 2003 12:10:28 -0000	1.6
@@ -1627,6 +1627,11 @@
     mp_dbg(MSGT_TV, MSGL_DBG2, "grab_audio_frame(priv=%p, buffer=%p, len=%d)\n",
 	priv, buffer, len);
 
+    if (priv->first) {
+        pthread_create(&priv->video_grabber_thread, NULL, video_grabber, priv);
+        priv->first = 0;
+    }
+
     // compensate for dropped audio frames
     if (priv->audio_drop && (priv->audio_head == priv->audio_tail)) {
 	priv->audio_drop--;

Index: tvi_v4l.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/tvi_v4l.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -r1.66 -r1.67
--- tvi_v4l.c	15 Aug 2003 15:25:55 -0000	1.66
+++ tvi_v4l.c	1 Sep 2003 12:10:29 -0000	1.67
@@ -1728,6 +1728,11 @@
     mp_dbg(MSGT_TV, MSGL_DBG2, "grab_audio_frame(priv=%p, buffer=%p, len=%d)\n",
 	priv, buffer, len);
 
+    if (priv->first) {
+	pthread_create(&priv->video_grabber_thread, NULL, video_grabber, priv);
+	priv->first = 0;
+    }
+
     // compensate for dropped audio frames
     if (priv->audio_drop && (priv->audio_head == priv->audio_tail)) {
 	priv->audio_drop--;



More information about the MPlayer-cvslog mailing list