Commit 25fdde90 authored by Ognyan Tonchev's avatar Ognyan Tonchev Committed by Wim Taymans
Browse files

rtpbasepayload: Do not leak the event when segment is delayed

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=703119
parent 32a1deb4
......@@ -385,6 +385,7 @@ gst_rtp_base_payload_sink_event_default (GstRTPBasePayload * rtpbasepayload,
"configured SEGMENT %" GST_SEGMENT_FORMAT, segment);
if (rtpbasepayload->priv->delay_segment) {
gst_event_replace (&rtpbasepayload->priv->pending_segment, event);
gst_event_unref (event);
res = TRUE;
} else {
res = gst_pad_event_default (rtpbasepayload->sinkpad, parent, event);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment