rtpjitterbuffer: Don't leak caps event when not pushing

This commit is contained in:
Olivier Crête 2012-01-27 12:14:49 +01:00
parent 33a6d1921f
commit 87f2088303

View file

@ -1053,6 +1053,8 @@ gst_rtp_jitter_buffer_sink_event (GstPad * pad, GstObject * parent,
/* set same caps on srcpad on success */
if (ret)
ret = gst_pad_push_event (priv->srcpad, event);
else
gst_event_unref (event);
break;
}
case GST_EVENT_SEGMENT: