From a4c3e155285fc05a27cbc5bef9e10abcf69eb3d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Mon, 8 Aug 2022 14:46:16 -0400 Subject: [PATCH] webrtcsdp: Don't require fingerprint in inactive media Inactive m-lines don't need a fingerprint as they may not have a connection. Part-of: --- subprojects/gst-plugins-bad/ext/webrtc/webrtcsdp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/subprojects/gst-plugins-bad/ext/webrtc/webrtcsdp.c b/subprojects/gst-plugins-bad/ext/webrtc/webrtcsdp.c index 769fdaa9be..221ac4eb9a 100644 --- a/subprojects/gst-plugins-bad/ext/webrtc/webrtcsdp.c +++ b/subprojects/gst-plugins-bad/ext/webrtc/webrtcsdp.c @@ -118,6 +118,12 @@ _check_sdp_crypto (SDPSource source, GstWebRTCSessionDescription * sdp, const GstSDPMedia *media = gst_sdp_message_get_media (sdp->sdp, i); const gchar *media_fingerprint = gst_sdp_media_get_attribute_val (media, "fingerprint"); + GstWebRTCRTPTransceiverDirection direction = + _get_direction_from_media (media); + + /* Skip inactive media */ + if (direction == GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_INACTIVE) + continue; if (!IS_EMPTY_SDP_ATTRIBUTE (message_fingerprint) && !IS_EMPTY_SDP_ATTRIBUTE (media_fingerprint)) {