diff options
author | Thiago Santos <thiago.sousa.santos@collabora.co.uk> | 2010-08-16 14:12:35 -0300 |
---|---|---|
committer | Thiago Santos <thiago.sousa.santos@collabora.co.uk> | 2010-08-24 21:10:33 -0300 |
commit | 0bd40a439789fdfb92bb945ccdb0b9b2b34611eb (patch) | |
tree | 8cbe687eb1f50a3d4cb018a4153a372de1418f11 | |
parent | 95cd0ab6e43cd8295e35aabcd6fb85e7de9d2d78 (diff) |
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
-rw-r--r-- | docs/gst/gstreamer-sections.txt | 1 | ||||
-rw-r--r-- | gst/gsttaglist.c | 3 | ||||
-rw-r--r-- | gst/gsttaglist.h | 11 |
3 files changed, 15 insertions, 0 deletions
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 @@ -968,6 +968,17 @@ gboolean gst_tag_list_get_buffer_index (const GstTagList * list, */ #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: * * Represents the 'Orientation' tag from EXIF. Defines how the image |