From de55965ebeb48fabc67ec95256a9e3521b396312 Mon Sep 17 00:00:00 2001 From: Sreerenj Balachandran Date: Thu, 19 Aug 2010 22:43:07 +0300 Subject: [PATCH] taglist: add a new "encoded-by" tag Usecase: ID3v2 TENC ("Encoded by") frame. API: GST_TAG_ENCODED_BY https://bugzilla.gnome.org/show_bug.cgi?id=627268 --- docs/gst/gstreamer-sections.txt | 1 + gst/gsttaglist.c | 3 +++ gst/gsttaglist.h | 13 +++++++++++++ 3 files changed, 17 insertions(+) diff --git a/docs/gst/gstreamer-sections.txt b/docs/gst/gstreamer-sections.txt index 06934720f3..5c731dc96a 100644 --- a/docs/gst/gstreamer-sections.txt +++ b/docs/gst/gstreamer-sections.txt @@ -2222,6 +2222,7 @@ GST_TAG_ISRC GST_TAG_ORGANIZATION GST_TAG_COPYRIGHT GST_TAG_COPYRIGHT_URI +GST_TAG_ENCODED_BY GST_TAG_COMPOSER GST_TAG_CONTACT GST_TAG_LICENSE diff --git a/gst/gsttaglist.c b/gst/gsttaglist.c index 06ae247c86..6bf596eff7 100644 --- a/gst/gsttaglist.c +++ b/gst/gsttaglist.c @@ -189,6 +189,9 @@ _gst_tag_initialize (void) gst_tag_register (GST_TAG_COPYRIGHT_URI, GST_TAG_FLAG_META, G_TYPE_STRING, _("copyright uri"), _("URI to the copyright notice of the data"), NULL); + gst_tag_register (GST_TAG_ENCODED_BY, GST_TAG_FLAG_META, G_TYPE_STRING, + _("encoded by"), _("name of the encoding person or organization"), + gst_tag_merge_strings_with_comma); gst_tag_register (GST_TAG_CONTACT, GST_TAG_FLAG_META, G_TYPE_STRING, _("contact"), _("contact information"), gst_tag_merge_strings_with_comma); diff --git a/gst/gsttaglist.h b/gst/gsttaglist.h index c05aeb1681..f4bef9cbea 100644 --- a/gst/gsttaglist.h +++ b/gst/gsttaglist.h @@ -579,6 +579,19 @@ gboolean gst_tag_list_get_buffer_index (const GstTagList * list, * Since: 0.10.14 */ #define GST_TAG_COPYRIGHT_URI "copyright-uri" +/** + * GST_TAG_ENCODED_BY: + * + * name of the person or organisation that encoded the file. May contain a + * copyright message if the person or organisation also holds the copyright + * (string) + * + * Note: do not use this field to describe the encoding application. Use + * #GST_TAG_APPLICATION_NAME or #GST_TAG_COMMENT for that. + * + * Since: 0.10.33 + */ +#define GST_TAG_ENCODED_BY "encoded-by" /** * GST_TAG_CONTACT: *