From 9fbecd6b6d37af9883ca58a91360a5db6a9f0102 Mon Sep 17 00:00:00 2001 From: Ravi Kiran K N Date: Mon, 29 Sep 2014 14:03:13 +0530 Subject: [PATCH] tags: add GST_TAG_PRIVATE_DATA Can be used to represent private data that may be contained in tags, such as ID3v2 PRIV frames. https://bugzilla.gnome.org/show_bug.cgi?id=730926 --- gst/gsttaglist.c | 4 ++++ gst/gsttaglist.h | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/gst/gsttaglist.c b/gst/gsttaglist.c index 5b644dc..8018dda 100644 --- a/gst/gsttaglist.c +++ b/gst/gsttaglist.c @@ -401,6 +401,10 @@ _priv_gst_tag_initialize (void) gst_tag_register_static (GST_TAG_MIDI_BASE_NOTE, GST_TAG_FLAG_META, G_TYPE_UINT, _("midi-base-note"), _("Midi note number of the audio track."), NULL); + gst_tag_register_static (GST_TAG_PRIVATE_DATA, GST_TAG_FLAG_META, + GST_TYPE_SAMPLE, + _("private-data"), _("Private data"), gst_tag_merge_use_first); + } /** diff --git a/gst/gsttaglist.h b/gst/gsttaglist.h index 3ee9fd8..b49893d 100644 --- a/gst/gsttaglist.h +++ b/gst/gsttaglist.h @@ -1060,6 +1060,23 @@ gst_tag_list_copy (const GstTagList * taglist) * Since: 1.4 */ #define GST_TAG_MIDI_BASE_NOTE "midi-base-note" +/** + * GST_TAG_PRIVATE_DATA: + * + * Any private data that may be contained in tags (sample). + * + * It is represented by #GstSample in which #GstBuffer contains the + * binary data and the sample's info #GstStructure may contain any + * extra information that identifies the origin or meaning of the data. + * + * Private frames in ID3v2 tags ('PRIV' frames) will be represented + * using this tag, in which case the GstStructure will be named + * "ID3PrivateFrame" and contain a field named "owner" of type string + * which contains the owner-identification string from the tag. + * + * Since: 1.8 + */ +#define GST_TAG_PRIVATE_DATA "private-data" G_END_DECLS -- 2.7.4