API: add GST_TAG_EXTENDED_COMMENT (#350935).

Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gsttaglist.c: (_gst_tag_initialize):
* gst/gsttaglist.h:
API: add GST_TAG_EXTENDED_COMMENT (#350935).
This commit is contained in:
Tim-Philipp Müller 2006-08-14 19:04:56 +00:00
parent 87e578704a
commit 5d2860b050
4 changed files with 29 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2006-08-14 Tim-Philipp Müller <tim at centricular dot net>
* docs/gst/gstreamer-sections.txt:
* gst/gsttaglist.c: (_gst_tag_initialize):
* gst/gsttaglist.h:
API: add GST_TAG_EXTENDED_COMMENT (#350935).
2006-08-14 Tim-Philipp Müller <tim at centricular dot net>
* gst/gstinfo.c: (gst_debug_print_object):

View file

@ -1774,6 +1774,7 @@ GST_TAG_ALBUM
GST_TAG_DATE
GST_TAG_GENRE
GST_TAG_COMMENT
GST_TAG_EXTENDED_COMMENT
GST_TAG_TRACK_NUMBER
GST_TAG_TRACK_COUNT
GST_TAG_ALBUM_VOLUME_NUMBER

View file

@ -113,7 +113,12 @@ _gst_tag_initialize (void)
gst_tag_register (GST_TAG_COMMENT, GST_TAG_FLAG_META,
G_TYPE_STRING,
_("comment"),
_("free text commenting the data"), gst_tag_merge_strings_with_comma);
_("free text commenting the data"), gst_tag_merge_use_first);
gst_tag_register (GST_TAG_EXTENDED_COMMENT, GST_TAG_FLAG_META,
G_TYPE_STRING,
_("extended comment"),
_("free text commenting the data in key=value or key[en]=comment form"),
gst_tag_merge_use_first);
gst_tag_register (GST_TAG_TRACK_NUMBER, GST_TAG_FLAG_META,
G_TYPE_UINT,
_("track number"),

View file

@ -314,6 +314,21 @@ gboolean gst_tag_list_get_date_index (const GstTagList * list,
* free text commenting the data (string)
*/
#define GST_TAG_COMMENT "comment"
/**
* GST_TAG_EXTENDED_COMMENT:
*
* key/value text commenting the data (string)
*
* Must be in the form of 'key=comment' or
* 'key[lc]=comment' where 'lc' is an ISO-639
* language code.
*
* This tag is used for unknown Vorbis comment tags,
* unknown APE tags and certain ID3v2 comment fields.
*
* Since: 0.10.10
*/
#define GST_TAG_EXTENDED_COMMENT "extended-comment"
/**
* GST_TAG_TRACK_NUMBER:
*