History

options: default slang to auto

rcombs committed 5 years ago

Commit 5dfa3f71 parent 5f146e73 files · +7 −1Browse files

Unified · Split

3 files
  1. DOCS/interface-changes.rst +1 −0
  2. DOCS/man/options.rst +1 −1
  3. options/options.c +5 −0
DOCS/interface-changes.rst+1−0
@@ -79,6 +79,7 @@ Interface changes · 78 unmodified lines
7979 - add `--gamut-mapping-mode=perceptual|relative|saturation|absolute|linear`
8080 - add `--corner-rounding` option
8181 - change `--subs-with-matching-audio` default from `yes` to `no`
82+ - change `--slang` default from blank to `auto`
8283 --- mpv 0.35.0 ---
8384 - add the `--vo=gpu-next` video output driver, as well as the options
8485 `--allow-delayed-peak-detect`, `--builtin-scalers`,
DOCS/man/options.rst+1−1
@@ -24,7 +24,7 @@ Track Selection · 23 unmodified lines
2424 audio.
2525
2626 ``--slang=<languagecode[,languagecode,...]>``
27− Equivalent to ``--alang``, for subtitle tracks.
27+ Equivalent to ``--alang``, for subtitle tracks (default: auto).
2828
2929 This is a string list option. See `List Options`_ for details.
3030
options/options.c+5−0
@@ -1030,6 +1030,11 @@ static const struct MPOpts mp_default_opts = { · 1029 unmodified lines
10301030 { [STREAM_AUDIO] = -2,
10311031 [STREAM_VIDEO] = -2,
10321032 [STREAM_SUB] = -2, }, },
1033+ .stream_lang = {
1034+ NULL, // video
1035+ NULL, // audio
1036+ (char**)(const char*[]) {"auto", NULL} // subtitles
1037+ },
10331038 .stream_auto_sel = true,
10341039 .subs_with_matching_audio = false,
10351040 .audio_display = 1,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t