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.
This commit is contained in:
wm4 2016-09-15 14:28:16 +02:00
parent 9c9cf125ad
commit 8bfcae748c
1 changed files with 1 additions and 1 deletions

View File

@ -883,7 +883,7 @@ void fill_audio_out_buffers(struct MPContext *mpctx)
return;
}
}
mpctx->audio_status = STATUS_SYNCING;
reinit_audio_filters_and_output(mpctx);
}
}