summaryrefslogtreecommitdiffstats
path: root/ext/taglib
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2007-09-25 19:09:33 +0000
committerTim-Philipp Müller <tim@centricular.net>2007-09-25 19:09:33 +0000
commitac934ae36b95372695c1fb6e81ce284172b2a6a9 (patch)
treebde92f3345acf135b84ef33e3a024378c955175a /ext/taglib
parentab3379a6ac746bc754554a689835dfdb0fbc1d27 (diff)
Add support for the new GST_TAG_COMPOSER (#459809).
Original commit message from CVS: * ext/taglib/gstapev2mux.cc: * ext/taglib/gstid3v2mux.cc: * gst/apetag/gstapedemux.c: Add support for the new GST_TAG_COMPOSER (#459809).
Diffstat (limited to 'ext/taglib')
-rw-r--r--ext/taglib/gstapev2mux.cc10
-rw-r--r--ext/taglib/gstid3v2mux.cc1
2 files changed, 11 insertions, 0 deletions
diff --git a/ext/taglib/gstapev2mux.cc b/ext/taglib/gstapev2mux.cc
index 3b848618..b7a61bff 100644
--- a/ext/taglib/gstapev2mux.cc
+++ b/ext/taglib/gstapev2mux.cc
@@ -141,6 +141,16 @@ add_one_tag (const GstTagList * list, const gchar * tag, gpointer user_data)
apev2tag->setArtist (String::String (artist, String::UTF8));
}
g_free (artist);
+ } else if (strcmp (tag, GST_TAG_COMPOSER) == 0) {
+ char *composer;
+
+ result = gst_tag_list_get_string_index (list, tag, 0, &composer);
+ if (result != FALSE) {
+ GST_DEBUG ("Setting composer to %s", composer);
+ apev2tag->addValue (String::String ("COMPOSER", String::UTF8),
+ String::String (composer, String::UTF8));
+ }
+ g_free (composer);
} else if (strcmp (tag, GST_TAG_GENRE) == 0) {
char *genre;
diff --git a/ext/taglib/gstid3v2mux.cc b/ext/taglib/gstid3v2mux.cc
index 60cc3f7f..ecc9f22a 100644
--- a/ext/taglib/gstid3v2mux.cc
+++ b/ext/taglib/gstid3v2mux.cc
@@ -529,6 +529,7 @@ static const struct
GST_TAG_TITLE, add_text_tag, "TIT2"}, {
GST_TAG_ALBUM, add_text_tag, "TALB"}, {
GST_TAG_COPYRIGHT, add_text_tag, "TCOP"}, {
+ GST_TAG_COMPOSER, add_text_tag, "TCOM"}, {
GST_TAG_GENRE, add_text_tag, "TCON"}, {
GST_TAG_COMMENT, add_comment_tag, ""}, {
GST_TAG_EXTENDED_COMMENT, add_comment_tag, ""}, {