summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Matthew <jonathan@0kaolin.wh9.net>2006-12-06 13:35:52 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2006-12-06 13:35:52 +0000
commit93663539f753d8eff21ba89bda54836851ba64e0 (patch)
tree1b7534b32ee58f956bbf1d812084f8630844c618
parent4f799e000fe29c214ce29156c1794a27001fb595 (diff)
ext/taglib/gstid3v2mux.cc: Don't attempt to write a NULL frame into the ID3 tag set when the createFrame method retur...
Original commit message from CVS: * ext/taglib/gstid3v2mux.cc: Don't attempt to write a NULL frame into the ID3 tag set when the createFrame method returned NULL. Fixes: #381857 Patch by: Jonathan Matthew <jonathan at 0kaolin wh9 net >
-rw-r--r--ChangeLog8
-rw-r--r--ext/taglib/gstid3v2mux.cc3
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7f2f5970..e769a3cd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2006-12-06 Jan Schmidt <thaytan@mad.scientist.com>
+ * ext/taglib/gstid3v2mux.cc:
+ Don't attempt to write a NULL frame into the ID3 tag set when the
+ createFrame method returned NULL.
+ Fixes: #381857
+ Patch by: Jonathan Matthew <jonathan at 0kaolin wh9 net >
+
+2006-12-06 Jan Schmidt <thaytan@mad.scientist.com>
+
* gst/apetag/gstapedemux.c: (ape_demux_parse_tags):
Use g_strtod() instead of sscanf to parse doubles, so that it will
try parsing in the C locale if the current locale fails.
diff --git a/ext/taglib/gstid3v2mux.cc b/ext/taglib/gstid3v2mux.cc
index a6dbd2b1..dc3b9d6c 100644
--- a/ext/taglib/gstid3v2mux.cc
+++ b/ext/taglib/gstid3v2mux.cc
@@ -381,7 +381,8 @@ add_id3v2frame_tag (ID3v2::Tag * id3v2tag, const GstTagList * list,
GST_PTR_FORMAT, version, i, num_tags, GST_BUFFER_SIZE (buf), s);
frame = factory->createFrame (bytes, (TagLib::uint) version);
- id3v2tag->addFrame (frame);
+ if (frame)
+ id3v2tag->addFrame (frame);
}
}
}