diff options
author | rcombs <rcombs@rcombs.me> | 2021-05-26 18:08:22 -0500 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-06-25 11:01:58 +0200 |
commit | 5dfa3f7f0899f3d536e72a7ccc8a9f35be44510f (patch) | |
tree | dbcae6e9072e3a19ad0400d7f0d0228f64c472a9 | |
parent | 5f146e742ac26528ef109105cbc7b1a08e563c88 (diff) | |
download | mpv-5dfa3f7f0899f3d536e72a7ccc8a9f35be44510f.tar.bz2 mpv-5dfa3f7f0899f3d536e72a7ccc8a9f35be44510f.tar.xz |
options: default slang to auto
-rw-r--r-- | DOCS/interface-changes.rst | 1 | ||||
-rw-r--r-- | DOCS/man/options.rst | 2 | ||||
-rw-r--r-- | options/options.c | 5 |
3 files changed, 7 insertions, 1 deletions
diff --git a/DOCS/interface-changes.rst b/DOCS/interface-changes.rst index 47abc427f0..bb503fcede 100644 --- a/DOCS/interface-changes.rst +++ b/DOCS/interface-changes.rst @@ -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`, diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index 3b427a0772..759b29b34d 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -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. diff --git a/options/options.c b/options/options.c index 626bddc5be..b068e60d23 100644 --- a/options/options.c +++ b/options/options.c @@ -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, |