mirror of
https://github.com/mpv-player/mpv
synced 2025-01-16 20:14:57 +00:00
player: do not deinitialize AO on track switching
This should make it behave roughly like when switching from a file to the next (clearing audio buffers, keeping AO, but closing AO if the audio format seems to have changed and gapless mode is "weak"). Not necessarily useful, but harmless and may help with #7579 (untested).
This commit is contained in:
parent
bc1a18ee24
commit
7df9f81d22
@ -632,7 +632,8 @@ void mp_switch_track_n(struct MPContext *mpctx, int order, enum stream_type type
|
||||
} else if (type == STREAM_AUDIO) {
|
||||
clear_audio_output_buffers(mpctx);
|
||||
uninit_audio_chain(mpctx);
|
||||
uninit_audio_out(mpctx);
|
||||
if (!track)
|
||||
uninit_audio_out(mpctx);
|
||||
}
|
||||
}
|
||||
if (type == STREAM_SUB)
|
||||
|
Loading…
Reference in New Issue
Block a user