avidemux: fix event leak

when seek fails in avidemux, event is not being freed.

https://bugzilla.gnome.org/show_bug.cgi?id=752117
This commit is contained in:
Vineeth T M 2015-07-08 20:31:42 +09:00 committed by Luis de Bethencourt
parent 8a0dbff3f4
commit 5439fc9a0c

View file

@ -5756,8 +5756,10 @@ gst_avi_demux_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
GST_OBJECT_UNLOCK (avi); GST_OBJECT_UNLOCK (avi);
/* calculate and perform seek */ /* calculate and perform seek */
if (!avi_demux_handle_seek_push (avi, avi->sinkpad, event)) if (!avi_demux_handle_seek_push (avi, avi->sinkpad, event)) {
gst_event_unref (event);
goto seek_failed; goto seek_failed;
}
gst_event_unref (event); gst_event_unref (event);
avi->state = GST_AVI_DEMUX_MOVI; avi->state = GST_AVI_DEMUX_MOVI;