summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--DOCS/man/options.rst4
-rw-r--r--demux/demux.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index b3acfaabbe..3759540207 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -3835,7 +3835,9 @@ Cache
``--cache-secs=<seconds>``
How many seconds of audio/video to prefetch if the cache is active. This
overrides the ``--demuxer-readahead-secs`` option if and only if the cache
- is enabled and the value is larger. (Default: 120.)
+ is enabled and the value is larger. The default value is set to something
+ very high, so the actually achieved readahead will usually be limited by
+ the value of the ``--demuxer-max-bytes`` option.
``--cache-pause``, ``--no-cache-pause``
Whether the player should automatically pause when the cache runs low,
diff --git a/demux/demux.c b/demux/demux.c
index 94966f1fc4..311c6704f9 100644
--- a/demux/demux.c
+++ b/demux/demux.c
@@ -114,7 +114,7 @@ const struct m_sub_options demux_conf = {
.max_bytes = 400 * 1024 * 1024,
.max_bytes_bw = 400 * 1024 * 1024,
.min_secs = 1.0,
- .min_secs_cache = 120.0,
+ .min_secs_cache = 10.0 * 60 * 60,
.seekable_cache = -1,
.access_references = 1,
},