mirror of https://github.com/mpv-player/mpv
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] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18048 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
b2e9d4082d
commit
105d22e6ff
|
@ -1485,7 +1485,7 @@ static int mp_property_audio_delay(m_option_t* prop,int action,void* arg) {
|
|||
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:
|
||||
|
|
Loading…
Reference in New Issue