aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/player_thread.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/player_thread.c b/src/player_thread.c
index f00d1aba8..add093083 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -447,8 +447,10 @@ play_chunk(struct song *song, struct music_chunk *chunk,
}
}
- if (chunk->length == 0)
+ if (chunk->length == 0) {
+ music_buffer_return(player_buffer, chunk);
return true;
+ }
pc.elapsed_time = chunk->times;
pc.bit_rate = chunk->bit_rate;