summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHavard Graff <havard.graff@gmail.com>2015-12-04 00:46:12 +1100
committerTim-Philipp Müller <tim@centricular.com>2016-02-19 14:54:04 +0000
commit1e09e5bfe97e72cd021eb0dcc2c5bda8e4309498 (patch)
treed870d1c0c0bb2de83d3090caa84208b0c9089286
parent7335d03070efc45fef1507da4df64adf54ff2355 (diff)
downloadgstreamer-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.c5
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;