[Mplayer-cvslog] CVS: main mplayer.c,1.625,1.626

Arpi of Ize arpi at mplayerhq.hu
Sat Dec 14 18:12:42 CET 2002


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

Modified Files:
	mplayer.c 
Log Message:
notice vo driver about skipped/dropped frames
patch by Alvaro Lopes <alvieboy at alvie.com>


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.625
retrieving revision 1.626
diff -u -r1.625 -r1.626
--- mplayer.c	11 Dec 2002 01:20:53 -0000	1.625
+++ mplayer.c	14 Dec 2002 17:12:23 -0000	1.626
@@ -1725,7 +1725,8 @@
 	if(vo_config_count) video_out->check_events();
 
         current_module="flip_page";
-        if(blit_frame && !frame_time_remaining){
+        if (!frame_time_remaining) {
+         if(blit_frame){
 	   unsigned int t2=GetTimer();
 	   double tt;
 	   float j;
@@ -1744,8 +1745,15 @@
 	   t2=GetTimer()-t2;
 	   tt = t2*0.000001f;
 	   vout_time_usage+=tt;
-	}
-
+	 } else {
+             /*
+	     Well, no blitting is needed, but some devices (such as yuv4mpeg) must output frame
+             otherwise A/V desync will occur. -- Alvieboy
+	     */
+	    if (vo_config_count)
+		video_out->control(VOCTRL_DUPLICATE_FRAME, NULL);
+         }
+        }
 //====================== A-V TIMESTAMP CORRECTION: =========================
 
   current_module="av_sync";




More information about the MPlayer-cvslog mailing list