[vlc-commits] [Git][videolan/vlc][master] 4 commits: input: meta: Add missing localized meta string

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Wed Nov 24 14:13:20 UTC 2021



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC


Commits:
b6972890 by Hugo Beauzée-Luyssen at 2021-11-24T13:36:15+00:00
input: meta: Add missing localized meta string

- - - - -
bc066fcc by Hugo Beauzée-Luyssen at 2021-11-24T13:36:15+00:00
input: meta: Remove superfluous semicolon

- - - - -
8fa04643 by Hugo Beauzée-Luyssen at 2021-11-24T13:36:15+00:00
input: meta: Use ARRAY_SIZE

- - - - -
b35560ba by Hugo Beauzée-Luyssen at 2021-11-24T13:36:15+00:00
input: meta: Ensure all entries are filled

- - - - -


1 changed file:

- src/input/meta.c


Changes:

=====================================
src/input/meta.c
=====================================
@@ -75,12 +75,14 @@ const char * vlc_meta_TypeToLocalizedString( vlc_meta_type_t meta_type )
         [vlc_meta_ShowName]    = N_("Show Name"),
         [vlc_meta_Actors]      = N_("Actors"),
         [vlc_meta_AlbumArtist] = N_("Album Artist"),
-        [vlc_meta_DiscNumber]  = N_("Disc number")
+        [vlc_meta_DiscNumber]  = N_("Disc number"),
+        [vlc_meta_DiscTotal]   = N_("Total disc number")
     };
 
-    assert (meta_type < (sizeof(posix_names) / sizeof(posix_names[0])));
+    assert (meta_type < ARRAY_SIZE(posix_names));
+    assert (strlen(posix_names[meta_type]));
     return vlc_gettext (posix_names[meta_type]);
-};
+}
 
 
 /**



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/2edb2785d42dcdd761ffcb531d80b2242c7915ec...b35560babc5f31042d0ecd8eb02a7668d41c48e2

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/2edb2785d42dcdd761ffcb531d80b2242c7915ec...b35560babc5f31042d0ecd8eb02a7668d41c48e2
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list