changeset 13094:7bcd674b13fb

fix for audio position inaccuracy also accounts for -speed option patch by Mikulas Patocka
author joey
date Sun, 22 Aug 2004 19:52:50 +0000
parents f682e97fdc5b
children 83a8f833de73
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sun Aug 22 19:36:27 2004 +0000
+++ b/mplayer.c	Sun Aug 22 19:52:50 2004 +0000
@@ -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;