aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/player_thread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/player_thread.c b/src/player_thread.c
index b8bc92af8..35796d95d 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -265,7 +265,8 @@ static void do_play(void)
}
if (player.buffering) {
- if (ob_available() < pc.buffered_before_play) {
+ if (ob_available() < pc.buffered_before_play &&
+ !decoder_is_idle()) {
/* not enough decoded buffer space yet */
notify_wait(&pc.notify);
continue;