diff options
author | Stéphane Loeuillet <gstreamer@leroutier.net> | 2004-05-14 17:23:08 +0000 |
---|---|---|
committer | Stéphane Loeuillet <gstreamer@leroutier.net> | 2004-05-14 17:23:08 +0000 |
commit | a89422346485b0135c7f4a45853dede1f0b3eb0f (patch) | |
tree | 3ac0c4b40f50696336fac04aa074fcd141cf7f9a /gst-libs/gst | |
parent | 8913233da21dbf0fa9087e49cc3c3303d6b7cd03 (diff) | |
download | gst-plugins-bad-a89422346485b0135c7f4a45853dede1f0b3eb0f.tar.gz gst-plugins-bad-a89422346485b0135c7f4a45853dede1f0b3eb0f.tar.bz2 gst-plugins-bad-a89422346485b0135c7f4a45853dede1f0b3eb0f.zip |
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
Diffstat (limited to 'gst-libs/gst')
-rw-r--r-- | gst-libs/gst/riff/riff-read.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gst-libs/gst/riff/riff-read.c b/gst-libs/gst/riff/riff-read.c index fc47f2c8..0e441ba8 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; |