diff options
author | John Millikin <jmillikin@gmail.com> | 2009-08-04 14:13:34 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-08-06 06:41:58 +0200 |
commit | 3e538b71fb505b009df8877fa618f9a3340fde09 (patch) | |
tree | a2560f651b076e6747b01d16063332e4c81e1479 /gst | |
parent | 6033efb92081c74fec66474c97952d6bcebaf2d2 (diff) |
taglist: Add support for ALBUM_ARTIST tag
The "album artist" tag is used when the artist of an entire
album differs from the artist of an individual track; for example,
when a "guest artist" appears on an album, or on compilations.
Fixes bug #590430.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/gsttaglist.c | 9 | ||||
-rw-r--r-- | gst/gsttaglist.h | 16 |
2 files changed, 25 insertions, 0 deletions
diff --git a/gst/gsttaglist.c b/gst/gsttaglist.c index af00ea44b5..21824b29aa 100644 --- a/gst/gsttaglist.c +++ b/gst/gsttaglist.c @@ -116,6 +116,15 @@ _gst_tag_initialize (void) G_TYPE_STRING, _("album sortname"), _("album containing this data for sorting purposes"), NULL); + gst_tag_register (GST_TAG_ALBUM_ARTIST, GST_TAG_FLAG_META, + G_TYPE_STRING, + _("album artist"), + _("The artist of the entire album, as it should be displayed"), + gst_tag_merge_strings_with_comma); + gst_tag_register (GST_TAG_ALBUM_ARTIST_SORTNAME, GST_TAG_FLAG_META, + G_TYPE_STRING, + _("album artist sortname"), + _("The artist of the entire album, as it should be sorted"), NULL); gst_tag_register (GST_TAG_DATE, GST_TAG_FLAG_META, GST_TYPE_DATE, _("date"), _("date the data was created (as a GDate structure)"), NULL); gst_tag_register (GST_TAG_GENRE, GST_TAG_FLAG_META, diff --git a/gst/gsttaglist.h b/gst/gsttaglist.h index 7157cdf960..6d5d57ed5b 100644 --- a/gst/gsttaglist.h +++ b/gst/gsttaglist.h @@ -413,6 +413,22 @@ gboolean gst_tag_list_get_buffer_index (const GstTagList * list, */ #define GST_TAG_ALBUM_SORTNAME "album-sortname" /** + * GST_TAG_ALBUM_ARTIST + * + * The artist of the entire album, as it should be displayed. + * + * Since: 0.10.25 + */ +#define GST_TAG_ALBUM_ARTIST "album-artist" +/** + * GST_TAG_ALBUM_ARTIST_SORTNAME + * + * The artist of the entire album, as it should be sorted. + * + * Since: 0.10.25 + */ +#define GST_TAG_ALBUM_ARTIST_SORTNAME "album-artist-sortname" +/** * GST_TAG_COMPOSER: * * person(s) who composed the recording (string) |