options: add --vlang switch

For symmetry with --alang and --slang. 100% useless, but why not?
This commit is contained in:
wm4 2017-10-13 00:31:43 +02:00
parent 5f8438bce6
commit 902ae9ae41
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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),