From 851a2b79259cafa0500ad3236f69ef15838993cd Mon Sep 17 00:00:00 2001 From: Mikhail Fludkov Date: Wed, 14 Sep 2016 16:49:26 +0200 Subject: [PATCH] rtpbin: use max-streams on rtpssrcdemux The proper way of capping on max-streams is to do it in rtpssrcdemux. This patch uses the newly introduced property on rtpssrcdemux. Previous behavior would not prevent rtpssrcdemux spawning new pads for every new ssrc and potentialy causing performance trouble during teardown. --- gst/rtpmanager/gstrtpbin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/rtpmanager/gstrtpbin.c b/gst/rtpmanager/gstrtpbin.c index 1bb521a6e1..a04a157a91 100644 --- a/gst/rtpmanager/gstrtpbin.c +++ b/gst/rtpmanager/gstrtpbin.c @@ -701,6 +701,7 @@ create_session (GstRtpBin * rtpbin, gint id) /* configure SDES items */ GST_OBJECT_LOCK (rtpbin); + g_object_set (demux, "max-streams", rtpbin->max_streams, NULL); g_object_set (session, "sdes", rtpbin->sdes, "rtp-profile", rtpbin->rtp_profile, "rtcp-sync-send-time", rtpbin->rtcp_sync_send_time, NULL);