1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 00:42:57 +00:00

player: don't fall asleep on audio decoding errors

This makes it retry later.

Fixes #1474.
This commit is contained in:
wm4 2015-01-15 21:57:09 +01:00
parent 7aaf71861e
commit 4e419b2b7b

View File

@ -507,6 +507,8 @@ static void do_fill_audio_out_buffers(struct MPContext *mpctx, double endpts)
mpctx->sleeptime = 0; mpctx->sleeptime = 0;
return; // retry on next iteration 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 // If EOF was reached before, but now something can be decoded, try to