mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 07:08:23 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1118>
This commit is contained in:
parent
9eddf844f0
commit
7104c867c0
1 changed files with 6 additions and 0 deletions
|
@ -118,6 +118,12 @@ _check_sdp_crypto (SDPSource source, GstWebRTCSessionDescription * sdp,
|
||||||
const GstSDPMedia *media = gst_sdp_message_get_media (sdp->sdp, i);
|
const GstSDPMedia *media = gst_sdp_message_get_media (sdp->sdp, i);
|
||||||
const gchar *media_fingerprint =
|
const gchar *media_fingerprint =
|
||||||
gst_sdp_media_get_attribute_val (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)
|
if (!IS_EMPTY_SDP_ATTRIBUTE (message_fingerprint)
|
||||||
&& !IS_EMPTY_SDP_ATTRIBUTE (media_fingerprint)) {
|
&& !IS_EMPTY_SDP_ATTRIBUTE (media_fingerprint)) {
|
||||||
|
|
Loading…
Reference in a new issue