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:
Guillaume Desmottes 2015-10-06 15:20:51 +02:00 committed by Tim-Philipp Müller
parent b4afaee8c0
commit 7d6b6b0313

View file

@ -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);