summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-08-24 22:13:12 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-08-24 22:13:12 +0200
commitba1c69fbd302abf10eaa6315b4ca83649f463e47 (patch)
tree6db03ffd9d48f2de7bfc23d5430899ab2df55001 /streamer.c
parent7d1c36432826595f52277fe56a26800a7514d321 (diff)
don't sleep during initial track prebuffering
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 f1335c00..940891c7 100644
--- a/streamer.c
+++ b/streamer.c
@@ -1052,7 +1052,7 @@ streamer_thread (void *ctx) {
int ms = (tm2.tv_sec*1000+tm2.tv_usec/1000) - (tm1.tv_sec*1000+tm1.tv_usec/1000);
alloc_time -= ms;
- if (alloc_time > 0) {
+ if (!streamer_buffering && alloc_time > 0) {
usleep (alloc_time * 1000);
// usleep (1000);
}