summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorjoey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-08-22 19:52:50 +0000
committerjoey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-08-22 19:52:50 +0000
commit178974d75b9ee7c0a3c88ae9251478423af053ec (patch)
tree7934e9487aff8c67808e9952f8174cc26fc9c216 /mplayer.c
parent12472027f06c862b444cb770054d4bf211ba1817 (diff)
downloadmpv-178974d75b9ee7c0a3c88ae9251478423af053ec.tar.bz2
mpv-178974d75b9ee7c0a3c88ae9251478423af053ec.tar.xz
fix for audio position inaccuracy
also accounts for -speed option patch by Mikulas Patocka git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13095 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index 39d89788e7..c8f9746634 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2039,7 +2039,7 @@ if(!sh_video) {
//
// 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;