mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
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
This commit is contained in:
parent
b93369c78a
commit
9fbecd6b6d
2 changed files with 21 additions and 0 deletions
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue