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:
wm4 2017-08-12 23:33:58 +02:00
parent f1d161d55f
commit b531332835
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}