summaryrefslogtreecommitdiffstats
path: root/options/options.c
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/options.c
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/options.c')
-rw-r--r--options/options.c2
1 files changed, 2 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,