[vlc-commits] Add new meta types for film info
Jean-Baptiste Kempf
git at videolan.org
Thu Feb 6 21:47:38 CET 2014
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Feb 6 18:10:56 2014 +0100| [2396ab526d169c8507966c23e3de1b7f47b2f010] | committer: Jean-Baptiste Kempf
Add new meta types for film info
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2396ab526d169c8507966c23e3de1b7f47b2f010
---
include/vlc_input_item.h | 5 +++++
include/vlc_meta.h | 19 +++++++++++++++++--
2 files changed, 22 insertions(+), 2 deletions(-)
diff --git a/include/vlc_input_item.h b/include/vlc_input_item.h
index d1f0198..484c67c 100644
--- a/include/vlc_input_item.h
+++ b/include/vlc_input_item.h
@@ -230,6 +230,11 @@ INPUT_META(EncodedBy)
INPUT_META(ArtworkURL)
INPUT_META(TrackID)
INPUT_META(TrackTotal)
+INPUT_META(Director)
+INPUT_META(Season)
+INPUT_META(Episode)
+INPUT_META(ShowName)
+INPUT_META(Actors)
#define input_item_SetTrackNum input_item_SetTrackNumber
#define input_item_GetTrackNum input_item_GetTrackNumber
diff --git a/include/vlc_meta.h b/include/vlc_meta.h
index 388a322..5dc8b19 100644
--- a/include/vlc_meta.h
+++ b/include/vlc_meta.h
@@ -49,10 +49,15 @@ typedef enum vlc_meta_type_t
vlc_meta_EncodedBy,
vlc_meta_ArtworkURL,
vlc_meta_TrackID,
- vlc_meta_TrackTotal
+ vlc_meta_TrackTotal,
+ vlc_meta_Director,
+ vlc_meta_Season,
+ vlc_meta_Episode,
+ vlc_meta_ShowName,
+ vlc_meta_Actors,
} vlc_meta_type_t;
-#define VLC_META_TYPE_COUNT 18
+#define VLC_META_TYPE_COUNT 23
#define ITEM_PREPARSED 1
#define ITEM_ARTURL_FETCHED 2
@@ -126,6 +131,11 @@ VLC_API int input_item_WriteMeta(vlc_object_t *, input_item_t *);
#define vlc_meta_SetArtURL( meta, b ) vlc_meta_Set( meta, vlc_meta_ArtworkURL, b )
#define vlc_meta_SetTrackID( meta, b ) vlc_meta_Set( meta, vlc_meta_TrackID, b )
#define vlc_meta_SetTrackTotal( meta, b ) vlc_meta_Set( meta, vlc_meta_TrackTotal, b )
+#define vlc_meta_SetDirector( meta, b ) vlc_meta_Set( meta, vlc_meta_Director, b )
+#define vlc_meta_SetSeason( meta, b ) vlc_meta_Set( meta, vlc_meta_Season, b )
+#define vlc_meta_SetEpisode( meta, b ) vlc_meta_Set( meta, vlc_meta_Episode, b )
+#define vlc_meta_SetShowName( meta, b ) vlc_meta_Set( meta, vlc_meta_ShowName, b )
+#define vlc_meta_SetActors( meta, b ) vlc_meta_Set( meta, vlc_meta_Actors, b )
#define VLC_META_TITLE vlc_meta_TypeToLocalizedString( vlc_meta_Title )
#define VLC_META_ARTIST vlc_meta_TypeToLocalizedString( vlc_meta_Artist )
@@ -144,6 +154,11 @@ VLC_API int input_item_WriteMeta(vlc_object_t *, input_item_t *);
#define VLC_META_ENCODED_BY vlc_meta_TypeToLocalizedString( vlc_meta_EncodedBy )
#define VLC_META_ART_URL vlc_meta_TypeToLocalizedString( vlc_meta_ArtworkURL )
#define VLC_META_TRACKID vlc_meta_TypeToLocalizedString( vlc_meta_TrackID )
+#define VLC_META_DIRECTOR vlc_meta_TypeToLocalizedString( vlc_meta_Director )
+#define VLC_META_SEASON vlc_meta_TypeToLocalizedString( vlc_meta_Season )
+#define VLC_META_EPISODE vlc_meta_TypeToLocalizedString( vlc_meta_Episode )
+#define VLC_META_SHOW_NAME vlc_meta_TypeToLocalizedString( vlc_meta_ShowName )
+#define VLC_META_ACTORS vlc_meta_TypeToLocalizedString( vlc_meta_Actors )
#endif
More information about the vlc-commits
mailing list