X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=subprojects%2Fgst-plugins-bad%2Fext%2Fwebrtc%2Fwebrtcsdp.c;h=769fdaa9be0d1b54dfbd19f01e8f033036ae4f74;hb=2112c3c6b849d2c5e5d2fd3160a89d1bb12c269a;hp=1abd4b1159618baace7b49870a0f3a60d740795f;hpb=dc1dc56c2d2b97839f4f52a11622ee7c8d6b308d;p=platform%2Fupstream%2Fgstreamer.git diff --git a/subprojects/gst-plugins-bad/ext/webrtc/webrtcsdp.c b/subprojects/gst-plugins-bad/ext/webrtc/webrtcsdp.c index 1abd4b1..769fdaa 100644 --- a/subprojects/gst-plugins-bad/ext/webrtc/webrtcsdp.c +++ b/subprojects/gst-plugins-bad/ext/webrtc/webrtcsdp.c @@ -101,7 +101,7 @@ static gboolean _check_sdp_crypto (SDPSource source, GstWebRTCSessionDescription * sdp, GError ** error) { - const gchar *message_fingerprint, *fingerprint; + const gchar *message_fingerprint; const GstSDPKey *key; int i; @@ -112,7 +112,7 @@ _check_sdp_crypto (SDPSource source, GstWebRTCSessionDescription * sdp, return FALSE; } - message_fingerprint = fingerprint = + message_fingerprint = gst_sdp_message_get_attribute_val (sdp->sdp, "fingerprint"); for (i = 0; i < gst_sdp_message_medias_len (sdp->sdp); i++) { const GstSDPMedia *media = gst_sdp_message_get_media (sdp->sdp, i); @@ -126,18 +126,6 @@ _check_sdp_crypto (SDPSource source, GstWebRTCSessionDescription * sdp, "No fingerprint lines in sdp for media %u", i); return FALSE; } - if (IS_EMPTY_SDP_ATTRIBUTE (fingerprint)) { - fingerprint = media_fingerprint; - } - if (!IS_EMPTY_SDP_ATTRIBUTE (media_fingerprint) - && g_strcmp0 (fingerprint, media_fingerprint) != 0) { - g_set_error (error, GST_WEBRTC_ERROR, - GST_WEBRTC_ERROR_FINGERPRINT_FAILURE, - "Fingerprint in media %u differs from %s fingerprint. " - "\'%s\' != \'%s\'", i, message_fingerprint ? "global" : "previous", - fingerprint, media_fingerprint); - return FALSE; - } } return TRUE;