From b37e3cc0eeb890793681a3fe03303503cc3b1c88 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 22 May 2014 13:07:18 +0200 Subject: cache: be silent if no initial fill is requested Hides the "Cache fill:" message with default settings. --- stream/cache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'stream') diff --git a/stream/cache.c b/stream/cache.c index 95ece34a8c..ad1277fb85 100644 --- a/stream/cache.c +++ b/stream/cache.c @@ -702,7 +702,9 @@ int stream_cache_init(stream_t *cache, stream_t *stream, } s->cache_thread_running = true; - // wait until cache is filled at least prefill_init % + // wait until cache is filled with at least min bytes + if (min < 1) + return 1; for (;;) { if (stream_check_interrupt(cache)) return 0; -- cgit v1.2.3