Commit a18fdf18 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

control/media_descriptor.c: Implement more meta.

parent b10cf533
......@@ -83,7 +83,22 @@ typedef struct libvlc_tag_query_t libvlc_tag_query_t;
typedef enum libvlc_meta_t {
libvlc_meta_Title,
libvlc_meta_Artist
libvlc_meta_Artist,
libvlc_meta_Genre,
libvlc_meta_Copyright,
libvlc_meta_Album,
libvlc_meta_TrackNumber,
libvlc_meta_Description,
libvlc_meta_Rating,
libvlc_meta_Date,
libvlc_meta_Settings,
libvlc_meta_URL,
libvlc_meta_Language,
libvlc_meta_NowPlaying,
libvlc_meta_Publisher,
libvlc_meta_EncodedBy,
libvlc_meta_ArtworkURL,
libvlc_meta_TrackID
} libvlc_meta_t;
/**@} */
......
......@@ -165,8 +165,23 @@ libvlc_media_descriptor_get_mrl( libvlc_media_descriptor_t * p_md,
**************************************************************************/
static const int meta_conversion[] =
{
[libvlc_meta_Title] = 0, /* Offset in the vlc_meta_t structure */
[libvlc_meta_Artist] = 1
[libvlc_meta_Title] = 0, /* Offset in the vlc_meta_t structure */
[libvlc_meta_Artist] = 1,
[libvlc_meta_Genre] = 2,
[libvlc_meta_Copyright] = 3,
[libvlc_meta_Album] = 4,
[libvlc_meta_TrackNumber] = 5,
[libvlc_meta_Description] = 6,
[libvlc_meta_Rating] = 7,
[libvlc_meta_Date] = 8,
[libvlc_meta_Settings] = 9,
[libvlc_meta_URL] = 10,
[libvlc_meta_Language] = 11,
[libvlc_meta_NowPlaying] = 12,
[libvlc_meta_Publisher] = 13,
[libvlc_meta_EncodedBy] = 14,
[libvlc_meta_ArtworkURL] = 15,
[libvlc_meta_TrackID] = 16
};
char * libvlc_media_descriptor_get_meta( libvlc_media_descriptor_t *p_md,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment