mirror of https://github.com/mpv-player/mpv
options: use designated initializer
shorter and more robust this way instead of inserting at an index by manually counting. the surrounding code also uses `[STREAM_*] = ..` so it's more consistent as well.
This commit is contained in:
parent
40a1b0066e
commit
39957c251c
|
@ -1033,9 +1033,7 @@ static const struct MPOpts mp_default_opts = {
|
|||
[STREAM_VIDEO] = -2,
|
||||
[STREAM_SUB] = -2, }, },
|
||||
.stream_lang = {
|
||||
NULL, // video
|
||||
NULL, // audio
|
||||
(char**)(const char*[]) {"auto", NULL} // subtitles
|
||||
[STREAM_SUB] = (char**)(const char*[]) {"auto", NULL},
|
||||
},
|
||||
.stream_auto_sel = true,
|
||||
.subs_with_matching_audio = false,
|
||||
|
|
Loading…
Reference in New Issue