options: default slang to auto

This commit is contained in:
rcombs 2021-05-26 18:08:22 -05:00 committed by sfan5
parent 5f146e742a
commit 5dfa3f7f08
3 changed files with 7 additions and 1 deletions

View File

@ -79,6 +79,7 @@ Interface changes
- add `--gamut-mapping-mode=perceptual|relative|saturation|absolute|linear`
- add `--corner-rounding` option
- change `--subs-with-matching-audio` default from `yes` to `no`
- change `--slang` default from blank to `auto`
--- mpv 0.35.0 ---
- add the `--vo=gpu-next` video output driver, as well as the options
`--allow-delayed-peak-detect`, `--builtin-scalers`,

View File

@ -24,7 +24,7 @@ Track Selection
audio.
``--slang=<languagecode[,languagecode,...]>``
Equivalent to ``--alang``, for subtitle tracks.
Equivalent to ``--alang``, for subtitle tracks (default: auto).
This is a string list option. See `List Options`_ for details.

View File

@ -1030,6 +1030,11 @@ static const struct MPOpts mp_default_opts = {
{ [STREAM_AUDIO] = -2,
[STREAM_VIDEO] = -2,
[STREAM_SUB] = -2, }, },
.stream_lang = {
NULL, // video
NULL, // audio
(char**)(const char*[]) {"auto", NULL} // subtitles
},
.stream_auto_sel = true,
.subs_with_matching_audio = false,
.audio_display = 1,