summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2016-03-10 12:20:49 -0500
committerOlivier CrĂȘte <olivier.crete@collabora.com>2016-03-10 12:20:49 -0500
commit3ec04587156f63f105051731acada2b43f74f8dc (patch)
treefe62eee67c5aa604a5db612f8301fae34124400b
parentc4bca15b08a34874fefc06529df98b4609abbf3d (diff)
downloadfarstream-3ec04587156f63f105051731acada2b43f74f8dc.tar.gz
fs-rtp-substream: Drop non-serialized events without caps
This prevents some events that shouldn't be forwarded from going downstream.
-rw-r--r--gst/fsrtpconference/fs-rtp-substream.c4
1 files changed, 4 insertions, 0 deletions
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);