Do not change crypto options in peer_connection.cc

Bug: webrtc:358039777
Change-Id: Icae795a122e0113c64fabd69d0fc2222e9562765
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/365360
Commit-Queue: Emil Vardar (xWF) <vardar@google.com>
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#43245}
This commit is contained in:
Emil Vardar 2024-10-11 09:09:17 +00:00 committed by WebRTC LUCI CQ
parent 183a522bdc
commit d3562286a0

View File

@ -761,11 +761,6 @@ RTCError PeerConnection::Initialize(
configuration_ = configuration; configuration_ = configuration;
if (configuration_.crypto_options) {
configuration_.crypto_options->srtp.enable_encrypted_rtp_header_extensions =
trials().IsEnabled("WebRTC-EncryptedRtpHeaderExtensions");
}
legacy_stats_ = std::make_unique<LegacyStatsCollector>(this); legacy_stats_ = std::make_unique<LegacyStatsCollector>(this);
stats_collector_ = RTCStatsCollector::Create(this, env_); stats_collector_ = RTCStatsCollector::Create(this, env_);
@ -820,8 +815,6 @@ JsepTransportController* PeerConnection::InitializeTransportController_n(
config.crypto_options = configuration.crypto_options.has_value() config.crypto_options = configuration.crypto_options.has_value()
? *configuration.crypto_options ? *configuration.crypto_options
: options_.crypto_options; : options_.crypto_options;
config.crypto_options.srtp.enable_encrypted_rtp_header_extensions =
trials().IsEnabled("WebRTC-EncryptedRtpHeaderExtensions");
config.transport_observer = this; config.transport_observer = this;
config.rtcp_handler = InitializeRtcpCallback(); config.rtcp_handler = InitializeRtcpCallback();
config.un_demuxable_packet_handler = InitializeUnDemuxablePacketHandler(); config.un_demuxable_packet_handler = InitializeUnDemuxablePacketHandler();