summaryrefslogtreecommitdiff
path: root/gst/icydemux
diff options
context:
space:
mode:
authorJonathan Matthew <jonathan@d14n.org>2010-11-04 16:42:07 +1000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2010-11-04 09:34:11 +0000
commit5b68b64617f08939e2b14a0ad88e1996504c544d (patch)
tree32862f5b98902e8ffcb5ddd9a1026f8ebb400c80 /gst/icydemux
parent57c9c268ed93442b48aa3f9fc260f153720ae8f0 (diff)
downloadgstreamer-plugins-good-5b68b64617f08939e2b14a0ad88e1996504c544d.tar.gz
icydemux: fix use-after-free of taglist
Broken by commit 4c2f5333 (bug #630205). https://bugzilla.gnome.org/show_bug.cgi?id=633970
Diffstat (limited to 'gst/icydemux')
-rw-r--r--gst/icydemux/gsticydemux.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/icydemux/gsticydemux.c b/gst/icydemux/gsticydemux.c
index b7070a3df..e3883a9f1 100644
--- a/gst/icydemux/gsticydemux.c
+++ b/gst/icydemux/gsticydemux.c
@@ -375,13 +375,15 @@ static gboolean
gst_icydemux_handle_event (GstPad * pad, GstEvent * event)
{
GstICYDemux *icydemux = GST_ICYDEMUX (GST_PAD_PARENT (pad));
+ gboolean result;
if (GST_EVENT_TYPE (event) == GST_EVENT_TAG) {
GstTagList *tags;
gst_event_parse_tag (event, &tags);
+ result = gst_icydemux_tag_found (icydemux, tags);
gst_event_unref (event);
- return gst_icydemux_tag_found (icydemux, tags);
+ return result;
}
if (icydemux->typefinding) {