mirror of https://github.com/mpv-player/mpv
player: fix another audio resync issue
This oddly triggers bogus EOF when switching filter graphs between two audio files (in this case, "[vid1]f[vo];[aid2]f[ao]"->"[aid1]f[ao]", with aid2 being an external audio source). This commit also fixes desync when seeking with an external file connected via --lavfi-complex. (Yes, the audio resync code is cursed.)
This commit is contained in:
parent
f1d161d55f
commit
b531332835
|
@ -1039,7 +1039,7 @@ void fill_audio_out_buffers(struct MPContext *mpctx)
|
|||
status = filter_audio(mpctx, ao_c->ao_buffer, playsize);
|
||||
if (status == AD_WAIT)
|
||||
return;
|
||||
if (status == AD_NO_PROGRESS) {
|
||||
if (status == AD_NO_PROGRESS || status == AD_STARVE) {
|
||||
mp_wakeup_core(mpctx);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue