]> git.sesse.net Git - vlc/commitdiff
lib: expose new meta data attributes
authorMark Lee <mark.lee@capricasoftware.co.uk>
Sat, 8 Feb 2014 14:10:13 +0000 (14:10 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 8 Feb 2014 15:11:13 +0000 (16:11 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
include/vlc/libvlc_media.h
lib/media.c

index eaa41f01890d6921f81af3fc4fe4a33aa8905635..948230a3f17569091b982038ec2c66b48e1a4398 100644 (file)
@@ -67,7 +67,13 @@ typedef enum libvlc_meta_t {
     libvlc_meta_Publisher,
     libvlc_meta_EncodedBy,
     libvlc_meta_ArtworkURL,
-    libvlc_meta_TrackID
+    libvlc_meta_TrackID,
+    libvlc_meta_TrackTotal,
+    libvlc_meta_Director,
+    libvlc_meta_Season,
+    libvlc_meta_Episode,
+    libvlc_meta_ShowName,
+    libvlc_meta_Actors
     /* Add new meta types HERE */
 } libvlc_meta_t;
 
index 04314b02a3b255fc2f24dd1fc5b7a470229f7f09..ef845cd7e855bd2186c9a1a5302b51b62184fac4 100644 (file)
@@ -61,7 +61,13 @@ static const vlc_meta_type_t libvlc_to_vlc_meta[] =
     [libvlc_meta_Publisher]    = vlc_meta_Publisher,
     [libvlc_meta_EncodedBy]    = vlc_meta_EncodedBy,
     [libvlc_meta_ArtworkURL]   = vlc_meta_ArtworkURL,
-    [libvlc_meta_TrackID]      = vlc_meta_TrackID
+    [libvlc_meta_TrackID]      = vlc_meta_TrackID,
+    [libvlc_meta_TrackTotal]   = vlc_meta_TrackTotal,
+    [libvlc_meta_Director]     = vlc_meta_Director,
+    [libvlc_meta_Season]       = vlc_meta_Season,
+    [libvlc_meta_Episode]      = vlc_meta_Episode,
+    [libvlc_meta_ShowName]     = vlc_meta_ShowName,
+    [libvlc_meta_Actors]       = vlc_meta_Actors
 };
 
 static const libvlc_meta_t vlc_to_libvlc_meta[] =
@@ -82,7 +88,13 @@ static const libvlc_meta_t vlc_to_libvlc_meta[] =
     [vlc_meta_Publisher]    = libvlc_meta_Publisher,
     [vlc_meta_EncodedBy]    = libvlc_meta_EncodedBy,
     [vlc_meta_ArtworkURL]   = libvlc_meta_ArtworkURL,
-    [vlc_meta_TrackID]      = libvlc_meta_TrackID
+    [vlc_meta_TrackID]      = libvlc_meta_TrackID,
+    [vlc_meta_TrackTotal]   = libvlc_meta_TrackTotal,
+    [vlc_meta_Director]     = libvlc_meta_Director,
+    [vlc_meta_Season]       = libvlc_meta_Season,
+    [vlc_meta_Episode]      = libvlc_meta_Episode,
+    [vlc_meta_ShowName]     = libvlc_meta_ShowName,
+    [vlc_meta_Actors]       = libvlc_meta_Actors
 };
 
 /**************************************************************************