From 8953c64a9c8b7be10a41ad1f21f8539f0446eb71 Mon Sep 17 00:00:00 2001 From: Ronghua Wu Date: Thu, 19 Jun 2025 18:10:35 -0700 Subject: [PATCH] role no longer needed in peer_connection_set_remote_description TEST: build --- src/peer_connection.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/peer_connection.c b/src/peer_connection.c index 5b1f5fb11..7422b5074 100644 --- a/src/peer_connection.c +++ b/src/peer_connection.c @@ -371,7 +371,6 @@ void peer_connection_set_remote_description(PeerConnection* pc, const char* sdp, char buf[256]; char* val_start = NULL; uint32_t* ssrc = NULL; - DtlsSrtpRole role = DTLS_SRTP_ROLE_SERVER; int is_update = 0; Agent* agent = &pc->agent; @@ -380,10 +379,6 @@ void peer_connection_set_remote_description(PeerConnection* pc, const char* sdp, strncpy(buf, start, line - start); buf[line - start] = '\0'; - if (strstr(buf, "a=setup:passive")) { - role = DTLS_SRTP_ROLE_CLIENT; - } - if (strstr(buf, "a=fingerprint")) { strncpy(pc->dtls_srtp.remote_fingerprint, buf + 22, DTLS_SRTP_FINGERPRINT_LENGTH); }