gst-libs/gst/tag/tags.c: Second field in GEnumValue shouldn't be a description, but a stringified version of the enum...

Original commit message from CVS:
* gst-libs/gst/tag/tags.c: (register_tag_image_type_enum):
Second field in GEnumValue shouldn't be a description,
but a stringified version of the enum value.
This commit is contained in:
Tim-Philipp Müller 2006-06-22 12:13:31 +00:00
parent 261f55dd2a
commit 96331d17e5
2 changed files with 33 additions and 19 deletions

View file

@ -1,3 +1,9 @@
2006-06-22 Tim-Philipp Müller <tim at centricular dot net>
* gst-libs/gst/tag/tags.c: (register_tag_image_type_enum):
Second field in GEnumValue shouldn't be a description,
but a stringified version of the enum value.
2006-06-22 Wim Taymans <wim@fluendo.com> 2006-06-22 Wim Taymans <wim@fluendo.com>
* sys/ximage/ximagesink.c: (gst_ximage_buffer_finalize), * sys/ximage/ximagesink.c: (gst_ximage_buffer_finalize),

View file

@ -88,31 +88,39 @@ static void
register_tag_image_type_enum (GType * id) register_tag_image_type_enum (GType * id)
{ {
static const GEnumValue image_types[] = { static const GEnumValue image_types[] = {
{GST_TAG_IMAGE_TYPE_UNDEFINED, "Undefined/other image type", "undefined"}, {GST_TAG_IMAGE_TYPE_UNDEFINED, "GST_TAG_IMAGE_TYPE_UNDEFINED", "undefined"},
{GST_TAG_IMAGE_TYPE_FRONT_COVER, "Cover (front)", "front-cover"}, {GST_TAG_IMAGE_TYPE_FRONT_COVER, "GST_TAG_IMAGE_TYPE_FRONT_COVER",
{GST_TAG_IMAGE_TYPE_BACK_COVER, "Cover (back)", "back-cover"}, "front-cover"},
{GST_TAG_IMAGE_TYPE_LEAFLET_PAGE, "Leaflet page", "leaflet-page"}, {GST_TAG_IMAGE_TYPE_BACK_COVER, "GST_TAG_IMAGE_TYPE_BACK_COVER",
{GST_TAG_IMAGE_TYPE_MEDIUM, "Medium (e.g. label side of CD)", "medium"}, "back-cover"},
{GST_TAG_IMAGE_TYPE_LEAD_ARTIST, "Lead artist/lead performer/soloist", {GST_TAG_IMAGE_TYPE_LEAFLET_PAGE, "GST_TAG_IMAGE_TYPE_LEAFLET_PAGE",
"leaflet-page"},
{GST_TAG_IMAGE_TYPE_MEDIUM, "GST_TAG_IMAGE_TYPE_MEDIUM", "medium"},
{GST_TAG_IMAGE_TYPE_LEAD_ARTIST, "GST_TAG_IMAGE_TYPE_LEAD_ARTIST",
"lead-artist"}, "lead-artist"},
{GST_TAG_IMAGE_TYPE_ARTIST, "Artist/performer", "artist"}, {GST_TAG_IMAGE_TYPE_ARTIST, "GST_TAG_IMAGE_TYPE_ARTIST", "artist"},
{GST_TAG_IMAGE_TYPE_CONDUCTOR, "Conductor", "conductor"}, {GST_TAG_IMAGE_TYPE_CONDUCTOR, "GST_TAG_IMAGE_TYPE_CONDUCTOR", "conductor"},
{GST_TAG_IMAGE_TYPE_BAND_ORCHESTRA, "Band/orchestra", "band-orchestra"}, {GST_TAG_IMAGE_TYPE_BAND_ORCHESTRA, "GST_TAG_IMAGE_TYPE_BAND_ORCHESTRA",
{GST_TAG_IMAGE_TYPE_COMPOSER, "Composer", "composer"}, "band-orchestra"},
{GST_TAG_IMAGE_TYPE_LYRICIST, "Lyricist/text writer", "lyricist"}, {GST_TAG_IMAGE_TYPE_COMPOSER, "GST_TAG_IMAGE_TYPE_COMPOSER", "composer"},
{GST_TAG_IMAGE_TYPE_RECORDING_LOCATION, "Recording location", {GST_TAG_IMAGE_TYPE_LYRICIST, "GST_TAG_IMAGE_TYPE_LYRICIST", "lyricist"},
{GST_TAG_IMAGE_TYPE_RECORDING_LOCATION,
"GST_TAG_IMAGE_TYPE_RECORDING_LOCATION",
"recording-location"}, "recording-location"},
{GST_TAG_IMAGE_TYPE_DURING_RECORDING, "During recording", {GST_TAG_IMAGE_TYPE_DURING_RECORDING, "GST_TAG_IMAGE_TYPE_DURING_RECORDING",
"during-recording"}, "during-recording"},
{GST_TAG_IMAGE_TYPE_DURING_PERFORMANCE, "During performance", {GST_TAG_IMAGE_TYPE_DURING_PERFORMANCE,
"GST_TAG_IMAGE_TYPE_DURING_PERFORMANCE",
"during-performance"}, "during-performance"},
{GST_TAG_IMAGE_TYPE_VIDEO_CAPTURE, "Movie/video screen capture", {GST_TAG_IMAGE_TYPE_VIDEO_CAPTURE, "GST_TAG_IMAGE_TYPE_VIDEO_CAPTURE",
"video-capture"}, "video-capture"},
{GST_TAG_IMAGE_TYPE_FISH, "A fish as funny as the ID3v2 spec", "fish"}, {GST_TAG_IMAGE_TYPE_FISH, "GST_TAG_IMAGE_TYPE_FISH", "fish"},
{GST_TAG_IMAGE_TYPE_ILLUSTRATION, "Illustration", "illustration"}, {GST_TAG_IMAGE_TYPE_ILLUSTRATION, "GST_TAG_IMAGE_TYPE_ILLUSTRATION",
{GST_TAG_IMAGE_TYPE_BAND_ARTIST_LOGO, "Band/artist logotype", "illustration"},
{GST_TAG_IMAGE_TYPE_BAND_ARTIST_LOGO, "GST_TAG_IMAGE_TYPE_BAND_ARTIST_LOGO",
"artist-logo"}, "artist-logo"},
{GST_TAG_IMAGE_TYPE_PUBLISHER_STUDIO_LOGO, "Publisher/studio logotype", {GST_TAG_IMAGE_TYPE_PUBLISHER_STUDIO_LOGO,
"GST_TAG_IMAGE_TYPE_PUBLISHER_STUDIO_LOGO",
"publisher-studio-logo"}, "publisher-studio-logo"},
{0, NULL, NULL} {0, NULL, NULL}
}; };