[MPlayer-cvslog] CVS: main mplayer.c,1.927,1.928

Reimar Döffinger CVS syncmail at mplayerhq.hu
Fri Apr 14 12:57:44 CEST 2006


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv15073

Modified Files:
	mplayer.c 
Log Message:
fix A-V sync overcorrection for desync due to too slow hardware.
Patch by Uoti Urpala ( uoti urpala at pp1 inet fi )


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.927
retrieving revision 1.928
diff -u -r1.927 -r1.928
--- mplayer.c	6 Apr 2006 12:12:08 -0000	1.927
+++ mplayer.c	14 Apr 2006 10:57:41 -0000	1.928
@@ -3809,7 +3809,13 @@
 	  ++drop_message;
 	  mp_msg(MSGT_AVSYNC,MSGL_WARN,MSGTR_SystemTooSlow);
 	}
-        x=AV_delay*0.1f;
+	if (autosync)
+	    x = AV_delay*0.1f;
+	else
+	    /* Do not correct target time for the next frame if this frame
+	     * was late not because of wrong target time but because the
+	     * target time could not be met */
+	    x = (AV_delay + time_frame * playback_speed) * 0.1f;
         if(x<-max_pts_correction) x=-max_pts_correction; else
         if(x> max_pts_correction) x= max_pts_correction;
         if(default_max_pts_correction>=0)




More information about the MPlayer-cvslog mailing list