Skip to content

Commit

Permalink
lib: expose new meta data attributes
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Baptiste Kempf <[email protected]>
  • Loading branch information
caprica authored and jbkempf committed Feb 8, 2014
1 parent ec6f231 commit 8db74e2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
8 changes: 7 additions & 1 deletion include/vlc/libvlc_media.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
16 changes: 14 additions & 2 deletions lib/media.c
Original file line number Diff line number Diff line change
Expand Up @@ -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[] =
Expand All @@ -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
};

/**************************************************************************
Expand Down

0 comments on commit 8db74e2

Please sign in to comment.