From: Stéphane Loeuillet Date: Fri, 14 May 2004 17:23:08 +0000 (+0000) Subject: gst-libs/gst/riff/riff-read.c: - fix INFO tag extraction in RIFF/AVI files because... X-Git-Tag: 1.19.3~507^2~23244 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a89422346485b0135c7f4a45853dede1f0b3eb0f;p=platform%2Fupstream%2Fgstreamer.git gst-libs/gst/riff/riff-read.c: - fix INFO tag extraction in RIFF/AVI files because gst_event_unref (event) also freed... Original commit message from CVS: * gst-libs/gst/riff/riff-read.c : - fix INFO tag extraction in RIFF/AVI files because gst_event_unref (event) also freed taglist - avoid a mem leak --- diff --git a/ChangeLog b/ChangeLog index 43a4836..5327fdc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-05-14 Stephane Loeuillet + + * gst-libs/gst/riff/riff-read.c : + - fix INFO tag extraction in RIFF/AVI files + because gst_event_unref (event) also freed taglist + - avoid a mem leak + 2004-05-13 Stephane Loeuillet * ext/mad/gstid3tag.c : move from "Codec/(Dem/M)uxer" to "Codec/(Dem/M)uxer/Audio" diff --git a/gst-libs/gst/riff/riff-read.c b/gst-libs/gst/riff/riff-read.c index fc47f2c..0e441ba 100644 --- a/gst-libs/gst/riff/riff-read.c +++ b/gst-libs/gst/riff/riff-read.c @@ -879,8 +879,12 @@ gst_riff_read_info (GstRiffRead * riff) gst_pad_push (GST_PAD (padlist->data), GST_DATA (event)); } } + + gst_element_found_tags (element, taglist); + gst_event_unref (event); - gst_element_found_tags (GST_ELEMENT (riff), taglist); + } else { + gst_tag_list_free (taglist); } return TRUE;