summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--player/audio.c2
1 files changed, 2 insertions, 0 deletions
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