summaryrefslogtreecommitdiffstats
path: root/player/audio.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-08-28 14:22:16 +0200
committerwm4 <wm4@nowhere>2014-08-28 14:26:38 +0200
commitf9f436a49093bed07e9a14ad2c7b974bb7e32f36 (patch)
treef484014bfe7fe0d3ff133b06b41eeaa7ba970751 /player/audio.c
parent7c0a5698ebc2295dc3c1c0c0912684f1794f4afd (diff)
downloadmpv-f9f436a49093bed07e9a14ad2c7b974bb7e32f36.tar.bz2
mpv-f9f436a49093bed07e9a14ad2c7b974bb7e32f36.tar.xz
audio: restore old speed change behavior
Don't attempt to resync after speed changes. Note that most other cases of audio reinit (like switching tracks etc.) still resync, but other code paths take care of setting the audio_status accordingly. This restores the old behavior of not trying to fix audio desync, which was probably changed with commit 261506e3. Note that the code as of now wasn't even entirely correct, since the A/V sync values are slightly shifted. The dsync depends on the audio buffer size, so a larger buffer size will show more extreme desync. Also see mplayer2 commit 213a224e, which should fixed this - it was not merged into mpv, because it disabled audio for too long, resulting in a worse user experience. This is similar to the issue this commit attempts to fix. Fixes: #1042 (probably) CC: @mpv-player-stable
Diffstat (limited to 'player/audio.c')
-rw-r--r--player/audio.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/player/audio.c b/player/audio.c
index cc5629a6e6..ebc9416202 100644
--- a/player/audio.c
+++ b/player/audio.c
@@ -111,8 +111,6 @@ void reinit_audio_chain(struct MPContext *mpctx)
mp_notify(mpctx, MPV_EVENT_AUDIO_RECONFIG, NULL);
- mpctx->audio_status = STATUS_SYNCING;
-
if (!(mpctx->initialized_flags & INITIALIZED_ACODEC)) {
mpctx->initialized_flags |= INITIALIZED_ACODEC;
assert(!mpctx->d_audio);