From 2492b5f1198161a04b046554df79390eb312ca5c Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 10 Sep 2015 14:10:44 +0200 Subject: cache: do not include backbuffer size in total stream cache size This causes weirdness with the "cache-size" property and option. Only the read handler of the property included the backbuffer, while all others did not. Make it consistent, and subtract the backbuffer size from the cache size. Fixes #2305. --- DOCS/man/input.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'DOCS/man/input.rst') diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index c49587eabf..b1ac03734c 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -1111,11 +1111,13 @@ Property list Network cache fill state (0-100.0). ``cache-size`` (RW) - Total network cache size in KB. This is similar to ``--cache``. This allows + Network cache size in KB. This is similar to ``--cache``. This allows to set the cache size at runtime. Currently, it's not possible to enable or disable the cache at runtime using this property, just to resize an existing cache. + This does not include the backbuffer size (changed after mpv 0.10.0). + Note that this tries to keep the cache contents as far as possible. To make this easier, the cache resizing code will allocate the new cache while the old cache is still allocated. -- cgit v1.2.3