summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-12-25 13:17:11 +0100
committerwm4 <wm4@nowhere>2015-12-25 13:17:11 +0100
commit0710ced0792f3ec83c337d1b4f48ff13950f7f33 (patch)
treed370c75f08f11d4aa661aaae55e56f353a3bfe93 /options
parent6d9cb89333782c1c7043f58cc4b0c713c2e871d6 (diff)
downloadmpv-0710ced0792f3ec83c337d1b4f48ff13950f7f33.tar.bz2
mpv-0710ced0792f3ec83c337d1b4f48ff13950f7f33.tar.xz
options: add --audio-file-paths
Requested. It works like --sub-paths. This will also load audio files from a "audio" sub directory in the config file (because the same code as for subtitles is used, and it also had such a feature). Fixes #2632.
Diffstat (limited to 'options')
-rw-r--r--options/options.c1
-rw-r--r--options/options.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 058265ae69..b001712349 100644
--- a/options/options.c
+++ b/options/options.c
@@ -332,6 +332,7 @@ const m_option_t mp_opts[] = {
OPT_STRING_APPEND_LIST("sub-file", sub_name, M_OPT_FILE),
OPT_PATHLIST("sub-paths", sub_paths, 0),
+ OPT_PATHLIST("audio-file-paths", audiofile_paths, 0),
OPT_STRING("sub-codepage", sub_cp, 0),
OPT_FLOAT("sub-delay", sub_delay, 0),
OPT_FLOAT("sub-fps", sub_fps, 0),
diff --git a/options/options.h b/options/options.h
index 53b8cc4564..ea3ee00b30 100644
--- a/options/options.h
+++ b/options/options.h
@@ -237,6 +237,7 @@ typedef struct MPOpts {
int field_dominance;
char **sub_name;
char **sub_paths;
+ char **audiofile_paths;
int sub_auto;
int audiofile_auto;
int osd_bar_visible;