[gst-cvs] gstreamer: tag: Adds GST_TAG_APPLICATION_NAME tag

Thiago Sousa Santos thiagoss at kemper.freedesktop.org
Mon Aug 9 14:09:30 PDT 2010


Module: gstreamer
Branch: master
Commit: 261ef606e2a062b165ef1848852a72f1e9b28100
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=261ef606e2a062b165ef1848852a72f1e9b28100

Author: Thiago Santos <thiago.sousa.santos at collabora.co.uk>
Date:   Wed Aug  4 11:24:12 2010 -0300

tag: Adds GST_TAG_APPLICATION_NAME tag

Adds a new tag for representing application used to create
a media

https://bugzilla.gnome.org/show_bug.cgi?id=626027

---

 docs/gst/gstreamer-sections.txt |    1 +
 gst/gsttaglist.c                |    2 ++
 gst/gsttaglist.h                |    8 ++++++++
 3 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/docs/gst/gstreamer-sections.txt b/docs/gst/gstreamer-sections.txt
index 5cd498f..00d90fb 100644
--- a/docs/gst/gstreamer-sections.txt
+++ b/docs/gst/gstreamer-sections.txt
@@ -2212,6 +2212,7 @@ GST_TAG_GROUPING
 GST_TAG_USER_RATING
 GST_TAG_DEVICE_MANUFACTURER
 GST_TAG_DEVICE_MODEL
+GST_TAG_APPLICATION_NAME
 GST_TAG_IMAGE_ORIENTATION
 
 gst_tag_register
diff --git a/gst/gsttaglist.c b/gst/gsttaglist.c
index 9772733..fb554e2 100644
--- a/gst/gsttaglist.c
+++ b/gst/gsttaglist.c
@@ -353,6 +353,8 @@ _gst_tag_initialize (void)
   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);
+  gst_tag_register (GST_TAG_APPLICATION_NAME, GST_TAG_FLAG_META, G_TYPE_STRING,
+      _("application name"), _("Application used to create the media"), NULL);
   gst_tag_register (GST_TAG_IMAGE_ORIENTATION, GST_TAG_FLAG_META, G_TYPE_STRING,
       _("image orientation"),
       _("How the image should be rotated or flipped before display"), NULL);
diff --git a/gst/gsttaglist.h b/gst/gsttaglist.h
index d5cdb7a..4a7311b 100644
--- a/gst/gsttaglist.h
+++ b/gst/gsttaglist.h
@@ -960,6 +960,14 @@ gboolean     gst_tag_list_get_buffer_index  (const GstTagList * list,
  */
 #define GST_TAG_DEVICE_MODEL                      "device-model"
 /**
+ * GST_TAG_APPLICATION_NAME:
+ *
+ * Name of the application used to create the media (string)
+ *
+ * Since: 0.10.31
+ */
+#define GST_TAG_APPLICATION_NAME                  "application-name"
+/**
  * GST_TAG_IMAGE_ORIENTATION:
  *
  * Represents the 'Orientation' tag from EXIF. Defines how the image





More information about the Gstreamer-commits mailing list