summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
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 30249467aa..3400f9ee96 100644
--- a/options/options.c
+++ b/options/options.c
@@ -361,6 +361,7 @@ const m_option_t mp_opts[] = {
OPT_ALIAS("audio", "aid"),
OPT_STRINGLIST("alang", stream_lang[STREAM_AUDIO], 0),
OPT_STRINGLIST("slang", stream_lang[STREAM_SUB], 0),
+ OPT_FLAG("track-auto-selection", stream_auto_sel, 0),
OPT_STRING("lavfi-complex", lavfi_complex, UPDATE_LAVFI_COMPLEX),
@@ -921,6 +922,7 @@ const struct MPOpts mp_default_opts = {
.stream_id_ff = { [STREAM_AUDIO] = -1,
[STREAM_VIDEO] = -1,
[STREAM_SUB] = -1, },
+ .stream_auto_sel = 1,
.audio_display = 1,
.sub_visibility = 1,
.sub_pos = 100,
diff --git a/options/options.h b/options/options.h
index 75884a290c..9ea09a83b3 100644
--- a/options/options.h
+++ b/options/options.h
@@ -212,6 +212,7 @@ typedef struct MPOpts {
int stream_id[2][STREAM_TYPE_COUNT];
int stream_id_ff[STREAM_TYPE_COUNT];
char **stream_lang[STREAM_TYPE_COUNT];
+ int stream_auto_sel;
int audio_display;
char **display_tags;
int sub_visibility;