diff options
author | Havard Graff <havard.graff@gmail.com> | 2015-12-04 00:46:12 +1100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2016-02-19 14:54:04 +0000 |
commit | 1e09e5bfe97e72cd021eb0dcc2c5bda8e4309498 (patch) | |
tree | d870d1c0c0bb2de83d3090caa84208b0c9089286 | |
parent | 7335d03070efc45fef1507da4df64adf54ff2355 (diff) | |
download | gstreamer-plugins-good-1e09e5bfe97e72cd021eb0dcc2c5bda8e4309498.tar.gz |
flvdemux: fix eos event leak
https://bugzilla.gnome.org/show_bug.cgi?id=762209
-rw-r--r-- | gst/flv/gstflvdemux.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/flv/gstflvdemux.c b/gst/flv/gstflvdemux.c index 19765f735..70e7fba36 100644 --- a/gst/flv/gstflvdemux.c +++ b/gst/flv/gstflvdemux.c @@ -3145,10 +3145,11 @@ gst_flv_demux_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) gst_object_unref (index); } - if (!demux->audio_pad && !demux->video_pad) + if (!demux->audio_pad && !demux->video_pad) { GST_ELEMENT_ERROR (demux, STREAM, FAILED, ("Internal data stream error."), ("Got EOS before any data")); - else { + gst_event_unref (event); + } else { if (!demux->no_more_pads) { gst_element_no_more_pads (GST_ELEMENT (demux)); demux->no_more_pads = TRUE; |