mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
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.
This commit is contained in:
parent
16d750bc01
commit
851a2b7925
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue