mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
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:
parent
8a0dbff3f4
commit
5439fc9a0c
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue