icydemux: fix use-after-free of taglist

Broken by commit 4c2f5333 (bug #630205).

https://bugzilla.gnome.org/show_bug.cgi?id=633970
This commit is contained in:
Jonathan Matthew 2010-11-04 16:42:07 +10:00 committed by Tim-Philipp Müller
parent 57c9c268ed
commit 5b68b64617

View file

@ -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) {