summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-08-18 19:56:34 +0200
committerGravatar waker <wakeroid@gmail.com>2009-08-18 19:56:34 +0200
commit4648789ea45e407541864772bb40963b65dcb096 (patch)
tree2c8d841c7ad3c719a0a99a4ddbb2d24b754caa5c /streamer.c
parent61c914a7e835875978040824402066a3beb12ace (diff)
fixed some more errors in streamer and mp3 decoder
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) {