From 0710ced0792f3ec83c337d1b4f48ff13950f7f33 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 25 Dec 2015 13:17:11 +0100 Subject: 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. --- options/options.c | 1 + options/options.h | 1 + 2 files changed, 2 insertions(+) (limited to 'options') 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; -- cgit v1.2.3