[Mplayer-cvslog] CVS: main mplayer.c,1.771,1.772

Joey Parrish CVS syncmail at mplayerhq.hu
Sun Aug 22 21:52:53 CEST 2004


CVS change done by Joey Parrish CVS

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

Modified Files:
	mplayer.c 
Log Message:
fix for audio position inaccuracy
also accounts for -speed option


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.771
retrieving revision 1.772
diff -u -r1.771 -r1.772
--- mplayer.c	22 Aug 2004 19:34:13 -0000	1.771
+++ mplayer.c	22 Aug 2004 19:52:50 -0000	1.772
@@ -2039,7 +2039,7 @@
       //
       // convert time to HH:MM:SS.F format
       //
-      long tenths = 10 * sh_audio->delay-audio_out->get_delay();
+      long tenths = 10 * (sh_audio->delay-audio_out->get_delay()*playback_speed);
       int hh = (tenths / 36000) % 100;
       int mm = (tenths / 600) % 60;
       int ss = (tenths /  10) % 60;




More information about the MPlayer-cvslog mailing list