mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
fixed a potential leak with previous commit
Original commit message from CVS: 2004-06-15 Zaheer Abbas Merali <zaheerabbas at merali.org> fixed a potential leak with previous commit * gst-libs/gst/riff/riff-read.c: (gst_riff_peek_head):
This commit is contained in:
parent
0cf31ef992
commit
9ca805fb93
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-06-15 Zaheer Abbas Merali <zaheerabbas at merali.org>
|
||||
|
||||
fixed a potential leak with previous commit
|
||||
|
||||
* gst-libs/gst/riff/riff-read.c: (gst_riff_peek_head):
|
||||
|
||||
2004-06-15 Zaheer Abbas Merali <zaheerabbas at merali.org>
|
||||
|
||||
* gst-libs/gst/riff/riff-read.c: (gst_riff_peek_head):
|
||||
|
|
|
@ -180,9 +180,10 @@ gst_riff_peek_head (GstRiffRead * riff,
|
|||
/* Here, we might encounter EOS */
|
||||
gst_bytestream_get_status (riff->bs, &remaining, &event);
|
||||
if (GST_IS_EVENT (event)) {
|
||||
gst_event_ref (event);
|
||||
gboolean eos = (GST_EVENT_TYPE (event) == GST_EVENT_EOS);
|
||||
|
||||
gst_pad_event_default (riff->sinkpad, event);
|
||||
if (GST_EVENT_TYPE (event) == GST_EVENT_EOS)
|
||||
if (eos)
|
||||
return FALSE;
|
||||
} else {
|
||||
GST_ELEMENT_ERROR (riff, RESOURCE, READ, (NULL), (NULL));
|
||||
|
|
Loading…
Reference in a new issue