summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-08-10 22:22:50 +0200
committerwm4 <wm4@nowhere>2016-08-10 22:22:50 +0200
commit87190969a758d7c20c39a456f05926bff42ac533 (patch)
treec51fc6c3c34dabb0a76186d463b5b0ab38664946 /options
parent367e9fb7f1e2143607a6d1ae0c1db5765c5f003b (diff)
downloadmpv-87190969a758d7c20c39a456f05926bff42ac533.tar.bz2
mpv-87190969a758d7c20c39a456f05926bff42ac533.tar.xz
player: add --no-autoload-files option
Allt his auto-loading is getting annoying especially for testing.
Diffstat (limited to 'options')
-rw-r--r--options/options.c2
-rw-r--r--options/options.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 9dcaedcf2d..9e3e70385e 100644
--- a/options/options.c
+++ b/options/options.c
@@ -342,6 +342,7 @@ const m_option_t mp_opts[] = {
OPT_PATHLIST("sub-paths", sub_paths, 0),
OPT_PATHLIST("audio-file-paths", audiofile_paths, 0),
OPT_STRING_APPEND_LIST("external-file", external_files, M_OPT_FILE),
+ OPT_FLAG("autoload-files", autoload_files, 0),
OPT_STRING("sub-codepage", sub_cp, 0),
OPT_FLOAT("sub-delay", sub_delay, 0),
OPT_FLOAT("sub-fps", sub_fps, 0),
@@ -763,6 +764,7 @@ const struct MPOpts mp_default_opts = {
.sync_audio_drop_size = 0.020,
.load_config = 1,
.position_resume = 1,
+ .autoload_files = 1,
.stream_cache = {
.size = -1,
.def_size = 75000,
diff --git a/options/options.h b/options/options.h
index 29cfb2231d..4de4a831bb 100644
--- a/options/options.h
+++ b/options/options.h
@@ -245,6 +245,7 @@ typedef struct MPOpts {
char **sub_paths;
char **audiofile_paths;
char **external_files;
+ int autoload_files;
int sub_auto;
int audiofile_auto;
int osd_bar_visible;