From 5dfa3f7f0899f3d536e72a7ccc8a9f35be44510f Mon Sep 17 00:00:00 2001 From: rcombs Date: Wed, 26 May 2021 18:08:22 -0500 Subject: options: default slang to auto --- DOCS/interface-changes.rst | 1 + DOCS/man/options.rst | 2 +- options/options.c | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) 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=`` - 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, -- cgit v1.2.3