From 87190969a758d7c20c39a456f05926bff42ac533 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 10 Aug 2016 22:22:50 +0200 Subject: player: add --no-autoload-files option Allt his auto-loading is getting annoying especially for testing. --- options/options.c | 2 ++ options/options.h | 1 + 2 files changed, 3 insertions(+) (limited to 'options') 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; -- cgit v1.2.3