From 0bd40a439789fdfb92bb945ccdb0b9b2b34611eb Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Mon, 16 Aug 2010 14:12:35 -0300 Subject: [PATCH] tag: Adds GST_TAG_APPLICATION_DATA Adds GST_TAG_APPLICATION_DATA for representing arbitrary private data that applications might want to store into tags. Exif/id3, for example, have tags for this. API: GST_TAG_APPLICATION_DATA Fixes #626651 --- docs/gst/gstreamer-sections.txt | 1 + gst/gsttaglist.c | 3 +++ gst/gsttaglist.h | 11 +++++++++++ 3 files changed, 15 insertions(+) diff --git a/docs/gst/gstreamer-sections.txt b/docs/gst/gstreamer-sections.txt index 1c0f1fb4b5..32e275cd39 100644 --- a/docs/gst/gstreamer-sections.txt +++ b/docs/gst/gstreamer-sections.txt @@ -2214,6 +2214,7 @@ GST_TAG_USER_RATING GST_TAG_DEVICE_MANUFACTURER GST_TAG_DEVICE_MODEL GST_TAG_APPLICATION_NAME +GST_TAG_APPLICATION_DATA GST_TAG_IMAGE_ORIENTATION gst_tag_register diff --git a/gst/gsttaglist.c b/gst/gsttaglist.c index fb554e2cba..8ec69e6f85 100644 --- a/gst/gsttaglist.c +++ b/gst/gsttaglist.c @@ -355,6 +355,9 @@ _gst_tag_initialize (void) _("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_APPLICATION_DATA, GST_TAG_FLAG_META, + GST_TYPE_BUFFER, _("application data"), + _("Arbitrary application data to be serialized into 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 4a7311b2b0..127ff6c4e2 100644 --- a/gst/gsttaglist.h +++ b/gst/gsttaglist.h @@ -967,6 +967,17 @@ gboolean gst_tag_list_get_buffer_index (const GstTagList * list, * Since: 0.10.31 */ #define GST_TAG_APPLICATION_NAME "application-name" +/** + * GST_TAG_APPLICATION_DATA: + * + * Arbitrary application data (buffer) + * + * Some formats allow application's to add their own arbitrary data + * into files. This data is application's dependent. + * + * Since: 0.10.31 + */ +#define GST_TAG_APPLICATION_DATA "application-data" /** * GST_TAG_IMAGE_ORIENTATION: *