Mercurial > mplayer.hg
diff mplayer.c @ 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 | 36701f60f093 |
children | 907fe1fdfc6c |
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;