From 3ec04587156f63f105051731acada2b43f74f8dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Thu, 10 Mar 2016 12:20:49 -0500 Subject: fs-rtp-substream: Drop non-serialized events without caps This prevents some events that shouldn't be forwarded from going downstream. --- gst/fsrtpconference/fs-rtp-substream.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/fsrtpconference/fs-rtp-substream.c b/gst/fsrtpconference/fs-rtp-substream.c index f984921e..b3c06a02 100644 --- a/gst/fsrtpconference/fs-rtp-substream.c +++ b/gst/fsrtpconference/fs-rtp-substream.c @@ -1232,6 +1232,10 @@ _rtpbin_pad_blocked_callback (GstPad *pad, GstPadProbeInfo *info, FsRtpSession *session; GstCaps *caps = NULL; + if (GST_PAD_PROBE_INFO_TYPE (info) == GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM && + !GST_EVENT_IS_SERIALIZED (GST_PAD_PROBE_INFO_EVENT (info))) + return GST_PAD_PROBE_PASS; + FS_RTP_SESSION_LOCK (substream->priv->session); substream->priv->blocking_id = 0; FS_RTP_SESSION_UNLOCK (substream->priv->session); -- cgit v1.2.1