summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
Diffstat (limited to 'streamer.c')
-rw-r--r--streamer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/streamer.c b/streamer.c
index 7b6216e9..65a9f006 100644
--- a/streamer.c
+++ b/streamer.c
@@ -140,7 +140,7 @@ streamer_thread (uintptr_t ctx) {
}
streamer_lock ();
- if (streambuffer_fill < STREAM_BUFFER_SIZE) {
+ if (streambuffer_fill < STREAM_BUFFER_SIZE && bytes_until_next_song == 0) {
int sz = STREAM_BUFFER_SIZE - streambuffer_fill;
int minsize = 4096;
if (streambuffer_fill < 16384) {