mirror of https://github.com/mpv-player/mpv
Revert "audio: set audio chain ao on reinit"
This reverts commit 3239e41277
.
I'm fairly sure this is wrong, and my next commit should fix it
properly. I'm not really sure, though. Normally, the AO is set again
by reinit_audio_filters_and_output() after the new audio chain has
decoded a frame and knows the new format. The reason replaygain (and
apparently the thing the reverted commit tried to fix) didn't work is
because they work asynchronously to the audio played by the AO (i.e.
buggy and hard to fix).
This commit is contained in:
parent
dd4d239bcb
commit
fce994bdc4
|
@ -568,10 +568,8 @@ void reinit_audio_chain_src(struct MPContext *mpctx, struct track *track)
|
|||
if (recreate_audio_filters(mpctx) < 0)
|
||||
goto init_error;
|
||||
|
||||
if (mpctx->ao) {
|
||||
ao_chain_set_ao(ao_c, mpctx->ao);
|
||||
if (mpctx->ao)
|
||||
audio_update_volume(mpctx);
|
||||
}
|
||||
|
||||
mp_wakeup_core(mpctx);
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue