mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
decodebin: fix event leak
As stated in GST_PAD_PROBE_HANDLED's documentation, we are supposed to unref the event before returning. Fixes an event leak in the validate.hls.playback.play_15s.hls_bibbop validate scenario. https://bugzilla.gnome.org/show_bug.cgi?id=754459
This commit is contained in:
parent
b4afaee8c0
commit
7d6b6b0313
1 changed files with 1 additions and 0 deletions
|
@ -2920,6 +2920,7 @@ sink_pad_event_probe (GstPad * pad, GstPadProbeInfo * info, gpointer user_data)
|
|||
if (otherpeer) {
|
||||
GST_DEBUG_OBJECT (otherpeer, "Attempting to forward event");
|
||||
if (gst_pad_send_event (otherpeer, gst_event_ref (event))) {
|
||||
gst_event_unref (event);
|
||||
proberet = GST_PAD_PROBE_HANDLED;
|
||||
}
|
||||
gst_object_unref (otherpeer);
|
||||
|
|
Loading…
Reference in a new issue