aboutsummaryrefslogtreecommitdiffhomepage
path: root/player
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2015-01-15 21:57:09 +0100
committerGravatar wm4 <wm4@nowhere>2015-01-15 21:57:09 +0100
commit4e419b2b7b76bedacd9b16e895fbd33798afb5eb (patch)
treef0970e8eb7cc41e442e8e87e44ad742c79a5caae /player
parent7aaf71861e6a353fc17a44500404c2dcc19bbcb2 (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.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