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.
This commit is contained in:
John Millikin 2009-08-04 14:13:34 +02:00 committed by Sebastian Dröge
parent 6033efb920
commit 3e538b71fb
2 changed files with 25 additions and 0 deletions

View file

@ -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,

View file

@ -412,6 +412,22 @@ gboolean gst_tag_list_get_buffer_index (const GstTagList * list,
* Since: 0.10.15
*/
#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:
*