diff options
author | wm4 <wm4@nowhere> | 2014-05-22 13:07:18 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-05-22 13:07:18 +0200 |
commit | b37e3cc0eeb890793681a3fe03303503cc3b1c88 (patch) | |
tree | f441a1893e2d612d5877c6bb4d6f0aaf4b46a6ef /stream/cache.c | |
parent | d62dad55ef30974b60ad24a6fccacbbd30bb8fd0 (diff) | |
download | mpv-b37e3cc0eeb890793681a3fe03303503cc3b1c88.tar.bz2 mpv-b37e3cc0eeb890793681a3fe03303503cc3b1c88.tar.xz |
cache: be silent if no initial fill is requested
Hides the "Cache fill:" message with default settings.
Diffstat (limited to 'stream/cache.c')
-rw-r--r-- | stream/cache.c | 4 |
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; |