# HG changeset patch # User joey # Date 1093204370 0 # Node ID 7bcd674b13fb33d4bac0bd56d5040873e11a91c5 # Parent f682e97fdc5bf43632864a712bcc13cf05c22eff fix for audio position inaccuracy also accounts for -speed option patch by Mikulas Patocka diff -r f682e97fdc5b -r 7bcd674b13fb mplayer.c --- 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;