tags: Adds GST_TAG_DEVICE_MANUFACTURER and GST_TAG_DEVICE_MODEL
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Fri, 16 Apr 2010 09:57:05 +0000 (06:57 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Mon, 3 May 2010 12:05:45 +0000 (09:05 -0300)
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

docs/gst/gstreamer-sections.txt
gst/gsttaglist.c
gst/gsttaglist.h

index 2088212..5ea48c4 100644 (file)
@@ -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
index 52b6446..8571267 100644 (file)
@@ -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);
 }
 
 /**
index 995cb59..75aa6f7 100644 (file)
@@ -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