From: Thiago Santos Date: Fri, 16 Apr 2010 09:57:05 +0000 (-0300) Subject: tags: Adds GST_TAG_DEVICE_MANUFACTURER and GST_TAG_DEVICE_MODEL X-Git-Tag: RELEASE-0.10.30~191 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2cc0bcb798442e50856bfb9e51477a88d8a7723b;p=platform%2Fupstream%2Fgstreamer.git tags: Adds GST_TAG_DEVICE_MANUFACTURER and GST_TAG_DEVICE_MODEL Adds those new tags to describe the device manufacturer and model used to create medias. API: GST_TAG_DEVICE_MANUFACTURER API: GST_TAG_DEVICE_MODEL Fixes #615941 --- diff --git a/docs/gst/gstreamer-sections.txt b/docs/gst/gstreamer-sections.txt index 2088212..5ea48c4 100644 --- a/docs/gst/gstreamer-sections.txt +++ b/docs/gst/gstreamer-sections.txt @@ -2191,6 +2191,8 @@ GST_TAG_LYRICS GST_TAG_COMPOSER_SORTNAME GST_TAG_GROUPING GST_TAG_USER_RATING +GST_TAG_DEVICE_MANUFACTURER +GST_TAG_DEVICE_MODEL gst_tag_register gst_tag_merge_use_first diff --git a/gst/gsttaglist.c b/gst/gsttaglist.c index 52b6446..8571267 100644 --- a/gst/gsttaglist.c +++ b/gst/gsttaglist.c @@ -327,6 +327,12 @@ _gst_tag_initialize (void) _("user rating"), _("Rating attributed by a user. The higher the rank, " "the more the user likes this media"), NULL); + gst_tag_register (GST_TAG_DEVICE_MANUFACTURER, GST_TAG_FLAG_META, + G_TYPE_STRING, _("device manufacturer"), + _("Manufacturer of the device used to create this media"), NULL); + gst_tag_register (GST_TAG_DEVICE_MODEL, GST_TAG_FLAG_META, G_TYPE_STRING, + _("device model"), + _("Model of the device used to create this media"), NULL); } /** diff --git a/gst/gsttaglist.h b/gst/gsttaglist.h index 995cb59..75aa6f7 100644 --- a/gst/gsttaglist.h +++ b/gst/gsttaglist.h @@ -889,6 +889,22 @@ gboolean gst_tag_list_get_buffer_index (const GstTagList * list, * Since: 0.10.29 */ #define GST_TAG_USER_RATING "user-rating" +/** + * GST_TAG_DEVICE_MANUFACTURER: + * + * Manufacturer of the device used to create the media (string) + * + * Since: 0.10.30 + */ +#define GST_TAG_DEVICE_MANUFACTURER "device-manufacturer" +/** + * GST_TAG_DEVICE_MODEL: + * + * Model of the device used to create the media (string) + * + * Since: 0.10.30 + */ +#define GST_TAG_DEVICE_MODEL "device-model" G_END_DECLS