diff options
author | Matthew Waters <matthew@centricular.com> | 2021-05-13 21:11:30 +1000 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-05-19 04:42:56 +0000 |
commit | a836bd476635c5911f95ff8b38dbf7878a2ecc32 (patch) | |
tree | 06cbb30b40a9a9c50421744bdbb939b5116954c5 /ext/webrtc/gstwebrtcice.c | |
parent | abe7e724ed6e5e1e1c4ca07b55f5204cd350ec1a (diff) | |
download | gstreamer-plugins-bad-a836bd476635c5911f95ff8b38dbf7878a2ecc32.tar.gz |
webrtcbin: advertise harder the rtcp-mux-only requirement
And ignore rtcp ICE candidates
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2239>
Diffstat (limited to 'ext/webrtc/gstwebrtcice.c')
-rw-r--r-- | ext/webrtc/gstwebrtcice.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/webrtc/gstwebrtcice.c b/ext/webrtc/gstwebrtcice.c index 886856cc9..84c4e0726 100644 --- a/ext/webrtc/gstwebrtcice.c +++ b/ext/webrtc/gstwebrtcice.c @@ -691,6 +691,13 @@ gst_webrtc_ice_add_candidate (GstWebRTCICE * ice, GstWebRTCICEStream * stream, } } + if (cand->component_id == 2) { + /* we only support rtcp-mux so rtcp candidates are useless for us */ + GST_INFO_OBJECT (ice, "Dropping RTCP candidate %s", candidate); + nice_candidate_free (cand); + return; + } + candidates = g_slist_append (candidates, cand); nice_agent_set_remote_candidates (ice->priv->nice_agent, item->nice_stream_id, |