summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-08-12 23:43:05 +0200
committerwm4 <wm4@nowhere>2017-08-12 23:44:47 +0200
commitc6628a5fb618715910ac7cb6d247fc0c0650517b (patch)
tree20d682817da226df703fb75ab5430692bcd60c71 /options
parentb531332835c4c5ef0cf18e04ce28034ac643168d (diff)
downloadmpv-c6628a5fb618715910ac7cb6d247fc0c0650517b.tar.bz2
mpv-c6628a5fb618715910ac7cb6d247fc0c0650517b.tar.xz
player: add --track-auto-selection option
I imagine this is useful. Or maybe it isn't.
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;