summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-10-13 00:31:43 +0200
committerwm4 <wm4@nowhere>2017-10-13 00:31:43 +0200
commit902ae9ae41091fbd95c223ac79fa1fa9f96cd011 (patch)
tree826ea986c88d47ae73b3536b327e4124a361199a
parent5f8438bce63318167f7f4f2b68c75ef4737d542c (diff)
downloadmpv-902ae9ae41091fbd95c223ac79fa1fa9f96cd011.tar.bz2
mpv-902ae9ae41091fbd95c223ac79fa1fa9f96cd011.tar.xz
options: add --vlang switch
For symmetry with --alang and --slang. 100% useless, but why not?
-rw-r--r--DOCS/man/options.rst3
-rw-r--r--options/options.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index 72176c7895..62c39cdf29 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -30,6 +30,9 @@ Track Selection
- ``mpv --slang=jpn example.mkv`` plays a Matroska file with Japanese
subtitles.
+``--vlang=<...>``
+ Equivalent to ``--alang`` and ``--slang``, for video tracks.
+
``--aid=<ID|auto|no>``
Select audio track. ``auto`` selects the default, ``no`` disables audio.
See also ``--alang``. mpv normally prints available audio tracks on the
diff --git a/options/options.c b/options/options.c
index a0aa4a89f8..e0f7e2b7e8 100644
--- a/options/options.c
+++ b/options/options.c
@@ -365,6 +365,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_STRINGLIST("vlang", stream_lang[STREAM_VIDEO], 0),
OPT_FLAG("track-auto-selection", stream_auto_sel, 0),
OPT_STRING("lavfi-complex", lavfi_complex, UPDATE_LAVFI_COMPLEX),