mirror of
https://github.com/mpv-player/mpv
synced 2025-04-01 23:00:41 +00:00
audio: re-probe spdif if AO is reloaded
Makes the spdif automagic work better on audio hotplugging.
This commit is contained in:
parent
288eaacd85
commit
66aa54d319
@ -473,8 +473,10 @@ void fill_audio_out_buffers(struct MPContext *mpctx, double endpts)
|
|||||||
if (mpctx->ao && ao_query_and_reset_events(mpctx->ao, AO_EVENT_RELOAD)) {
|
if (mpctx->ao && ao_query_and_reset_events(mpctx->ao, AO_EVENT_RELOAD)) {
|
||||||
ao_reset(mpctx->ao);
|
ao_reset(mpctx->ao);
|
||||||
uninit_audio_out(mpctx);
|
uninit_audio_out(mpctx);
|
||||||
if (d_audio)
|
if (d_audio) {
|
||||||
|
mpctx->d_audio->spdif_passthrough = true;
|
||||||
mpctx->audio_status = STATUS_SYNCING;
|
mpctx->audio_status = STATUS_SYNCING;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!d_audio)
|
if (!d_audio)
|
||||||
|
Loading…
Reference in New Issue
Block a user