From 8bfcae748c0d0407eac610cf7d3fde864b98410c Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 15 Sep 2016 14:28:16 +0200 Subject: 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. --- player/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/audio.c') 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); } } -- cgit v1.2.3