mirror of https://github.com/mpv-player/mpv
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:
parent
9c9cf125ad
commit
8bfcae748c
|
@ -883,7 +883,7 @@ void fill_audio_out_buffers(struct MPContext *mpctx)
|
|||
return;
|
||||
}
|
||||
}
|
||||
mpctx->audio_status = STATUS_SYNCING;
|
||||
reinit_audio_filters_and_output(mpctx);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue