mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-28 14:29:25 +08:00
player: don't fall asleep on audio decoding errors
This makes it retry later. Fixes #1474.
This commit is contained in:
@@ -507,6 +507,8 @@ static void do_fill_audio_out_buffers(struct MPContext *mpctx, double endpts)
|
||||
mpctx->sleeptime = 0;
|
||||
return; // retry on next iteration
|
||||
}
|
||||
if (status == AD_ERR)
|
||||
mpctx->sleeptime = 0;
|
||||
}
|
||||
|
||||
// If EOF was reached before, but now something can be decoded, try to
|
||||
|
||||
Reference in New Issue
Block a user