From 4e419b2b7b76bedacd9b16e895fbd33798afb5eb Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 15 Jan 2015 21:57:09 +0100 Subject: player: don't fall asleep on audio decoding errors This makes it retry later. Fixes #1474. --- player/audio.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'player/audio.c') diff --git a/player/audio.c b/player/audio.c index 15dfc2c2d8..b75902c73d 100644 --- a/player/audio.c +++ b/player/audio.c @@ -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 -- cgit v1.2.3