diff options
author | NRK <nrk@disroot.org> | 2023-06-30 03:55:47 +0600 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-06-30 10:22:15 +0200 |
commit | 39957c251cc1d9ee996badbc01b013489f3247f2 (patch) | |
tree | 5086639cd7b4acd6ecf510239d27b98e7f4123c5 /options/options.c | |
parent | 40a1b0066e7e37121518354ed0059f356f5378d1 (diff) | |
download | mpv-39957c251cc1d9ee996badbc01b013489f3247f2.tar.bz2 mpv-39957c251cc1d9ee996badbc01b013489f3247f2.tar.xz |
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.
Diffstat (limited to 'options/options.c')
-rw-r--r-- | options/options.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/options/options.c b/options/options.c index 3606fde6a9..f20ca99817 100644 --- a/options/options.c +++ b/options/options.c @@ -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, |