summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-15 14:28:16 +0200
committerwm4 <wm4@nowhere>2016-09-15 14:50:38 +0200
commit8bfcae748c0d0407eac610cf7d3fde864b98410c (patch)
tree78df9fca161d7f6fff8b46aba89f9fa778102d8b /player
parent9c9cf125ad71aeff7fe6979b7b5d1f44f2d1a6ac (diff)
downloadmpv-8bfcae748c0d0407eac610cf7d3fde864b98410c.tar.bz2
mpv-8bfcae748c0d0407eac610cf7d3fde864b98410c.tar.xz
audio: fix missed wakeup when changing audio output device
When playing audio-only, and changing the audio output device, playback froze until the next time the playback core happened to wakeup (like moving the mouse, or OSD redrawing). This is probably because of the awful statemachine in fill_audio_out_buffers() - just make it recreate the AO directly instead.
Diffstat (limited to 'player')
-rw-r--r--player/audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/audio.c b/player/audio.c
index 507ef4d218..1329057033 100644
--- a/player/audio.c
+++ b/player/audio.c
@@ -883,7 +883,7 @@ void fill_audio_out_buffers(struct MPContext *mpctx)
return;
}
}
- mpctx->audio_status = STATUS_SYNCING;
+ reinit_audio_filters_and_output(mpctx);
}
}