summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-08-30 19:37:21 +0200
committerwm4 <wm4@nowhere>2014-08-30 19:37:21 +0200
commit829fdef2193584ccf9b671747df9e4a806f82137 (patch)
treeb9e72c205b649e7d528e87479915d6f8788e7b29
parentb8f2f0d69eb8b8a404eaffd23cf3aab8560e29ec (diff)
downloadmpv-829fdef2193584ccf9b671747df9e4a806f82137.tar.bz2
mpv-829fdef2193584ccf9b671747df9e4a806f82137.tar.xz
player: reduce default demuxer cache
A (hopefully) temporary hack to make stream switching delays tolerable. It's not clear how this should be handled (either executing a precise seek on track switching, or always enabling all streams), so get this issue out of the way for now by picking a rather low value.
-rw-r--r--DOCS/man/options.rst2
-rw-r--r--options/options.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index f1df635bb2..0b7178e89c 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -2800,7 +2800,7 @@ 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. (Default: 10.)
+ is enabled. (Default: 2.)
``--cache-pause``, ``--no-cache-pause``
Whether the player should automatically pause when the cache runs low,
diff --git a/options/options.c b/options/options.c
index a77568858d..0f97528ba1 100644
--- a/options/options.c
+++ b/options/options.c
@@ -603,7 +603,7 @@ const struct MPOpts mp_default_opts = {
.demuxer_min_bytes = 0,
.demuxer_min_secs = 0.2,
.network_rtsp_transport = 2,
- .demuxer_min_secs_cache = 10,
+ .demuxer_min_secs_cache = 2,
.cache_pausing = 1,
.chapterrange = {-1, -1},
.edition_id = -1,