changeset 18047:a597ca1c0adc

sh_audio->delay is adjusted in the wrong direction when changing audio_delay at runtime (taking esp. long to recover with large -autosync). Patch by Uoti Urpala [uoti urpala at pp1 inet fi]
author reimar
date Thu, 06 Apr 2006 12:12:08 +0000
parents a0ab6fed1d14
children eff6cb3278aa
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Thu Apr 06 10:08:54 2006 +0000
+++ b/mplayer.c	Thu Apr 06 12:12:08 2006 +0000
@@ -1485,7 +1485,7 @@
         else {
             float delay = audio_delay;
             m_property_delay(prop,action,arg,&audio_delay);
-            if(sh_audio) sh_audio->delay += audio_delay-delay;
+            if(sh_audio) sh_audio->delay -= audio_delay-delay;
         }
         return 1;
     default: