[vlc-commits] Provide vlc_meta_TypeToLocalizedString for the new types

Jean-Baptiste Kempf git at videolan.org
Thu Feb 6 21:47:39 CET 2014


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Feb  6 18:11:19 2014 +0100| [7c7948dba07607ae472438b8d5327e45bd13be01] | committer: Jean-Baptiste Kempf

Provide vlc_meta_TypeToLocalizedString for the new types

And a forgotten old one...

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7c7948dba07607ae472438b8d5327e45bd13be01
---

 src/input/meta.c |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/input/meta.c b/src/input/meta.c
index 6234719..892b4af 100644
--- a/src/input/meta.c
+++ b/src/input/meta.c
@@ -50,7 +50,7 @@ struct vlc_meta_t
 /* FIXME bad name convention */
 const char * vlc_meta_TypeToLocalizedString( vlc_meta_type_t meta_type )
 {
-    static const char posix_names[][16] =
+    static const char posix_names[][17] =
     {
         [vlc_meta_Title]       = N_("Title"),
         [vlc_meta_Artist]      = N_("Artist"),
@@ -69,6 +69,12 @@ const char * vlc_meta_TypeToLocalizedString( vlc_meta_type_t meta_type )
         [vlc_meta_EncodedBy]   = N_("Encoded by"),
         [vlc_meta_ArtworkURL]  = N_("Artwork URL"),
         [vlc_meta_TrackID]     = N_("Track ID"),
+        [vlc_meta_TrackTotal]  = N_("Number of Tracks"),
+        [vlc_meta_Director]    = N_("Director"),
+        [vlc_meta_Season]      = N_("Season"),
+        [vlc_meta_Episode]     = N_("Episode"),
+        [vlc_meta_ShowName]    = N_("Show Name"),
+        [vlc_meta_Actors]      = N_("Actors"),
     };
 
     assert (meta_type < (sizeof(posix_names) / sizeof(posix_names[0])));



More information about the vlc-commits mailing list