diff options
author | wm4 <wm4@nowhere> | 2015-01-15 21:57:09 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-15 21:57:09 +0100 |
commit | 4e419b2b7b76bedacd9b16e895fbd33798afb5eb (patch) | |
tree | f0970e8eb7cc41e442e8e87e44ad742c79a5caae /player | |
parent | 7aaf71861e6a353fc17a44500404c2dcc19bbcb2 (diff) |
player: don't fall asleep on audio decoding errors
This makes it retry later.
Fixes #1474.
Diffstat (limited to 'player')
-rw-r--r-- | player/audio.c | 2 |
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 |