From 829fdef2193584ccf9b671747df9e4a806f82137 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 30 Aug 2014 19:37:21 +0200 Subject: 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. --- DOCS/man/options.rst | 2 +- options/options.c | 2 +- 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=`` 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, -- cgit v1.2.3