From: Tim-Philipp Müller Date: Sat, 23 Jun 2012 14:44:16 +0000 (+0100) Subject: tags: use gst_tag_register_static() X-Git-Tag: 1.19.3~511^2~6297 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=100fe89aa28087373980e9eaabab4d7ea6a3d812;p=platform%2Fupstream%2Fgstreamer.git tags: use gst_tag_register_static() --- diff --git a/gst-libs/gst/tag/tags.c b/gst-libs/gst/tag/tags.c index dad7ea3..d02888f 100644 --- a/gst-libs/gst/tag/tags.c +++ b/gst-libs/gst/tag/tags.c @@ -75,122 +75,122 @@ gst_tag_register_tags_internal (gpointer unused) #endif /* musicbrainz tags */ - gst_tag_register (GST_TAG_MUSICBRAINZ_TRACKID, GST_TAG_FLAG_META, + gst_tag_register_static (GST_TAG_MUSICBRAINZ_TRACKID, GST_TAG_FLAG_META, G_TYPE_STRING, _("track ID"), _("MusicBrainz track ID"), NULL); - gst_tag_register (GST_TAG_MUSICBRAINZ_ARTISTID, GST_TAG_FLAG_META, + gst_tag_register_static (GST_TAG_MUSICBRAINZ_ARTISTID, GST_TAG_FLAG_META, G_TYPE_STRING, _("artist ID"), _("MusicBrainz artist ID"), NULL); - gst_tag_register (GST_TAG_MUSICBRAINZ_ALBUMID, GST_TAG_FLAG_META, + gst_tag_register_static (GST_TAG_MUSICBRAINZ_ALBUMID, GST_TAG_FLAG_META, G_TYPE_STRING, _("album ID"), _("MusicBrainz album ID"), NULL); - gst_tag_register (GST_TAG_MUSICBRAINZ_ALBUMARTISTID, GST_TAG_FLAG_META, + gst_tag_register_static (GST_TAG_MUSICBRAINZ_ALBUMARTISTID, GST_TAG_FLAG_META, G_TYPE_STRING, _("album artist ID"), _("MusicBrainz album artist ID"), NULL); - gst_tag_register (GST_TAG_MUSICBRAINZ_TRMID, GST_TAG_FLAG_META, + gst_tag_register_static (GST_TAG_MUSICBRAINZ_TRMID, GST_TAG_FLAG_META, G_TYPE_STRING, _("track TRM ID"), _("MusicBrainz TRM ID"), NULL); /* CDDA tags */ - gst_tag_register (GST_TAG_CDDA_CDDB_DISCID, GST_TAG_FLAG_META, + gst_tag_register_static (GST_TAG_CDDA_CDDB_DISCID, GST_TAG_FLAG_META, G_TYPE_STRING, "discid", "CDDB discid for metadata retrieval", gst_tag_merge_use_first); - gst_tag_register (GST_TAG_CDDA_CDDB_DISCID_FULL, GST_TAG_FLAG_META, + gst_tag_register_static (GST_TAG_CDDA_CDDB_DISCID_FULL, GST_TAG_FLAG_META, G_TYPE_STRING, "discid full", "CDDB discid for metadata retrieval (full)", gst_tag_merge_use_first); - gst_tag_register (GST_TAG_CDDA_MUSICBRAINZ_DISCID, GST_TAG_FLAG_META, + gst_tag_register_static (GST_TAG_CDDA_MUSICBRAINZ_DISCID, GST_TAG_FLAG_META, G_TYPE_STRING, "musicbrainz-discid", "Musicbrainz discid for metadata retrieval", gst_tag_merge_use_first); - gst_tag_register (GST_TAG_CDDA_MUSICBRAINZ_DISCID_FULL, GST_TAG_FLAG_META, - G_TYPE_STRING, "musicbrainz-discid-full", + gst_tag_register_static (GST_TAG_CDDA_MUSICBRAINZ_DISCID_FULL, + GST_TAG_FLAG_META, G_TYPE_STRING, "musicbrainz-discid-full", "Musicbrainz discid for metadata retrieval (full)", gst_tag_merge_use_first); /* photography tags */ - gst_tag_register (GST_TAG_CAPTURING_SHUTTER_SPEED, GST_TAG_FLAG_META, + gst_tag_register_static (GST_TAG_CAPTURING_SHUTTER_SPEED, GST_TAG_FLAG_META, GST_TYPE_FRACTION, _("capturing shutter speed"), _("Shutter speed used when capturing an image, in seconds"), NULL); - gst_tag_register (GST_TAG_CAPTURING_FOCAL_RATIO, GST_TAG_FLAG_META, + gst_tag_register_static (GST_TAG_CAPTURING_FOCAL_RATIO, GST_TAG_FLAG_META, G_TYPE_DOUBLE, _("capturing focal ratio"), _("Focal ratio (f-number) used when capturing the image"), NULL); - gst_tag_register (GST_TAG_CAPTURING_FOCAL_LENGTH, GST_TAG_FLAG_META, + gst_tag_register_static (GST_TAG_CAPTURING_FOCAL_LENGTH, GST_TAG_FLAG_META, G_TYPE_DOUBLE, _("capturing focal length"), _("Focal length of the lens used capturing the image, in mm"), NULL); - gst_tag_register (GST_TAG_CAPTURING_DIGITAL_ZOOM_RATIO, GST_TAG_FLAG_META, - G_TYPE_DOUBLE, _("capturing digital zoom ratio"), + gst_tag_register_static (GST_TAG_CAPTURING_DIGITAL_ZOOM_RATIO, + GST_TAG_FLAG_META, G_TYPE_DOUBLE, _("capturing digital zoom ratio"), _("Digital zoom ratio used when capturing an image"), NULL); - gst_tag_register (GST_TAG_CAPTURING_ISO_SPEED, GST_TAG_FLAG_META, + gst_tag_register_static (GST_TAG_CAPTURING_ISO_SPEED, GST_TAG_FLAG_META, G_TYPE_INT, _("capturing iso speed"), _("The ISO speed used when capturing an image"), NULL); - gst_tag_register (GST_TAG_CAPTURING_EXPOSURE_PROGRAM, GST_TAG_FLAG_META, - G_TYPE_STRING, _("capturing exposure program"), + gst_tag_register_static (GST_TAG_CAPTURING_EXPOSURE_PROGRAM, + GST_TAG_FLAG_META, G_TYPE_STRING, _("capturing exposure program"), _("The exposure program used when capturing an image"), NULL); - gst_tag_register (GST_TAG_CAPTURING_EXPOSURE_MODE, GST_TAG_FLAG_META, + gst_tag_register_static (GST_TAG_CAPTURING_EXPOSURE_MODE, GST_TAG_FLAG_META, G_TYPE_STRING, _("capturing exposure mode"), _("The exposure mode used when capturing an image"), NULL); - gst_tag_register (GST_TAG_CAPTURING_EXPOSURE_COMPENSATION, GST_TAG_FLAG_META, - G_TYPE_DOUBLE, _("capturing exposure compensation"), + gst_tag_register_static (GST_TAG_CAPTURING_EXPOSURE_COMPENSATION, + GST_TAG_FLAG_META, G_TYPE_DOUBLE, _("capturing exposure compensation"), _("The exposure compensation used when capturing an image"), NULL); - gst_tag_register (GST_TAG_CAPTURING_SCENE_CAPTURE_TYPE, GST_TAG_FLAG_META, - G_TYPE_STRING, _("capturing scene capture type"), + gst_tag_register_static (GST_TAG_CAPTURING_SCENE_CAPTURE_TYPE, + GST_TAG_FLAG_META, G_TYPE_STRING, _("capturing scene capture type"), _("The scene capture mode used when capturing an image"), NULL); - gst_tag_register (GST_TAG_CAPTURING_GAIN_ADJUSTMENT, GST_TAG_FLAG_META, + gst_tag_register_static (GST_TAG_CAPTURING_GAIN_ADJUSTMENT, GST_TAG_FLAG_META, G_TYPE_STRING, _("capturing gain adjustment"), _("The overall gain adjustment applied on an image"), NULL); - gst_tag_register (GST_TAG_CAPTURING_WHITE_BALANCE, GST_TAG_FLAG_META, + gst_tag_register_static (GST_TAG_CAPTURING_WHITE_BALANCE, GST_TAG_FLAG_META, G_TYPE_STRING, _("capturing white balance"), _("The white balance mode set when capturing an image"), NULL); - gst_tag_register (GST_TAG_CAPTURING_CONTRAST, GST_TAG_FLAG_META, + gst_tag_register_static (GST_TAG_CAPTURING_CONTRAST, GST_TAG_FLAG_META, G_TYPE_STRING, _("capturing contrast"), _("The direction of contrast processing applied " "when capturing an image"), NULL); - gst_tag_register (GST_TAG_CAPTURING_SATURATION, GST_TAG_FLAG_META, + gst_tag_register_static (GST_TAG_CAPTURING_SATURATION, GST_TAG_FLAG_META, G_TYPE_STRING, _("capturing saturation"), _("The direction of saturation processing applied when " "capturing an image"), NULL); - gst_tag_register (GST_TAG_CAPTURING_SHARPNESS, GST_TAG_FLAG_META, + gst_tag_register_static (GST_TAG_CAPTURING_SHARPNESS, GST_TAG_FLAG_META, G_TYPE_STRING, _("capturing sharpness"), _("The direction of sharpness processing applied " "when capturing an image"), NULL); - gst_tag_register (GST_TAG_CAPTURING_FLASH_FIRED, GST_TAG_FLAG_META, + gst_tag_register_static (GST_TAG_CAPTURING_FLASH_FIRED, GST_TAG_FLAG_META, G_TYPE_BOOLEAN, _("capturing flash fired"), _("If the flash fired while capturing an image"), NULL); - gst_tag_register (GST_TAG_CAPTURING_FLASH_MODE, GST_TAG_FLAG_META, + gst_tag_register_static (GST_TAG_CAPTURING_FLASH_MODE, GST_TAG_FLAG_META, G_TYPE_STRING, _("capturing flash mode"), _("The selected flash mode while capturing an image"), NULL); - gst_tag_register (GST_TAG_CAPTURING_METERING_MODE, GST_TAG_FLAG_META, + gst_tag_register_static (GST_TAG_CAPTURING_METERING_MODE, GST_TAG_FLAG_META, G_TYPE_STRING, _("capturing metering mode"), _("The metering mode used while determining exposure for capturing an" " image"), NULL); - gst_tag_register (GST_TAG_CAPTURING_SOURCE, GST_TAG_FLAG_META, + gst_tag_register_static (GST_TAG_CAPTURING_SOURCE, GST_TAG_FLAG_META, G_TYPE_STRING, _("capturing source"), _("The source or type of device used for the capture"), NULL); - gst_tag_register (GST_TAG_IMAGE_HORIZONTAL_PPI, GST_TAG_FLAG_META, + gst_tag_register_static (GST_TAG_IMAGE_HORIZONTAL_PPI, GST_TAG_FLAG_META, G_TYPE_DOUBLE, _("image horizontal ppi"), _("Media (image/video) intended horizontal pixel density in ppi"), NULL); - gst_tag_register (GST_TAG_IMAGE_VERTICAL_PPI, GST_TAG_FLAG_META, + gst_tag_register_static (GST_TAG_IMAGE_VERTICAL_PPI, GST_TAG_FLAG_META, G_TYPE_DOUBLE, _("image vertical ppi"), _("Media (image/video) intended vertical pixel density in ppi"), NULL); - gst_tag_register (GST_TAG_ID3V2_FRAME, GST_TAG_FLAG_META, + gst_tag_register_static (GST_TAG_ID3V2_FRAME, GST_TAG_FLAG_META, GST_TYPE_BUFFER, _("ID3v2 frame"), _("unparsed id3v2 tag frame"), gst_tag_merge_use_first);