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
79 - add `--gamut-mapping-mode=perceptual|relative|saturation|absolute|linear`79 - add `--gamut-mapping-mode=perceptual|relative|saturation|absolute|linear`
80 - add `--corner-rounding` option80 - add `--corner-rounding` option
81 - change `--subs-with-matching-audio` default from `yes` to `no`81 - change `--subs-with-matching-audio` default from `yes` to `no`
82 - change `--slang` default from blank to `auto`
82 --- mpv 0.35.0 ---83 --- mpv 0.35.0 ---
83 - add the `--vo=gpu-next` video output driver, as well as the options84 - add the `--vo=gpu-next` video output driver, as well as the options
84 `--allow-delayed-peak-detect`, `--builtin-scalers`,85 `--allow-delayed-peak-detect`, `--builtin-scalers`,
DOCS/man/options.rst+1−1
@@ -24,7 +24,7 @@ Track Selection · 23 unmodified lines
24 audio.24 audio.
25 25
26``--slang=<languagecode[,languagecode,...]>``26``--slang=<languagecode[,languagecode,...]>``
27 Equivalent to ``--alang``, for subtitle tracks.27 Equivalent to ``--alang``, for subtitle tracks (default: auto).
28 28
29 This is a string list option. See `List Options`_ for details.29 This is a string list option. See `List Options`_ for details.
30 30
options/options.c+5−0
@@ -1030,6 +1030,11 @@ static const struct MPOpts mp_default_opts = { · 1029 unmodified lines
1030 { [STREAM_AUDIO] = -2,1030 { [STREAM_AUDIO] = -2,
1031 [STREAM_VIDEO] = -2,1031 [STREAM_VIDEO] = -2,
1032 [STREAM_SUB] = -2, }, },1032 [STREAM_SUB] = -2, }, },
1033 .stream_lang = {
1034 NULL, // video
1035 NULL, // audio
1036 (char**)(const char*[]) {"auto", NULL} // subtitles
1037 },
1033 .stream_auto_sel = true,1038 .stream_auto_sel = true,
1034 .subs_with_matching_audio = false,1039 .subs_with_matching_audio = false,
1035 .audio_display = 1,1040 .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