summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-15 21:57:09 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-01-25 17:00:09 +0900
commitc926927c594ce05e8a6be5b80d44e320c820bf84 (patch)
tree6f85044466e2159aea1a56ddfd6f905ac9eec735
parent9af1ff9817bf2ac01f99e64fe4607dcb3d30e60c (diff)
downloadmpv-c926927c594ce05e8a6be5b80d44e320c820bf84.tar.bz2
mpv-c926927c594ce05e8a6be5b80d44e320c820bf84.tar.xz
player: don't fall asleep on audio decoding errors
This makes it retry later. Fixes #1474.
-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