summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-05-22 13:07:18 +0200
committerwm4 <wm4@nowhere>2014-05-22 13:07:18 +0200
commitb37e3cc0eeb890793681a3fe03303503cc3b1c88 (patch)
treef441a1893e2d612d5877c6bb4d6f0aaf4b46a6ef
parentd62dad55ef30974b60ad24a6fccacbbd30bb8fd0 (diff)
downloadmpv-b37e3cc0eeb890793681a3fe03303503cc3b1c88.tar.bz2
mpv-b37e3cc0eeb890793681a3fe03303503cc3b1c88.tar.xz
cache: be silent if no initial fill is requested
Hides the "Cache fill:" message with default settings.
-rw-r--r--stream/cache.c4
1 files changed, 3 insertions, 1 deletions
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;