From 39957c251cc1d9ee996badbc01b013489f3247f2 Mon Sep 17 00:00:00 2001 From: NRK Date: Fri, 30 Jun 2023 03:55:47 +0600 Subject: [PATCH] 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. --- options/options.c | 4 +--- 1 file changed, 1 insertion(+), 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,