commit 88abca040ae57eb4347bc2c4b7de7a4fbdbd6ce2 parent 3bcc5255de660e64a87dec1a9f2903fea940c94e Author: Michael Froman <mfroman@mozilla.com> Date: Thu, 9 Oct 2025 14:51:23 -0500 Bug 1993083 - Vendor libwebrtc from 586f5bd37a Upstream commit: https://webrtc.googlesource.com/src/+/586f5bd37a519505ca8cdda73865e045a9a4c70e Use AbslStringify for SdpType where appropriate Bug: None Change-Id: I6a5896bee607458fa9d7ccaf4d48861621bbf958 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/400680 Reviewed-by: Philip Eliasson <philipel@webrtc.org> Commit-Queue: Harald Alvestrand <hta@webrtc.org> Cr-Commit-Position: refs/heads/main@{#45162} Diffstat:
5 files changed, 10 insertions(+), 16 deletions(-)
diff --git a/third_party/libwebrtc/README.mozilla.last-vendor b/third_party/libwebrtc/README.mozilla.last-vendor @@ -1,4 +1,4 @@ # ./mach python dom/media/webrtc/third_party_build/vendor-libwebrtc.py --from-local /home/mfroman/mozilla/elm/.moz-fast-forward/moz-libwebrtc --commit mozpatches libwebrtc -libwebrtc updated from /home/mfroman/mozilla/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-10-09T19:49:52.179522+00:00. +libwebrtc updated from /home/mfroman/mozilla/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-10-09T19:51:13.504824+00:00. # base of lastest vendoring -e30dd59e03 +586f5bd37a diff --git a/third_party/libwebrtc/api/jsep.h b/third_party/libwebrtc/api/jsep.h @@ -288,7 +288,7 @@ class RTC_EXPORT SessionDescriptionInterface { template <typename Sink> friend void AbslStringify(Sink& sink, const SessionDescriptionInterface& p) { sink.Append("\n--- BEGIN SDP "); - sink.Append(SdpTypeToString(p.GetType())); + absl::Format(&sink, "%v", p.GetType()); sink.Append(" ---\n"); std::string temp; if (p.ToString(&temp)) { diff --git a/third_party/libwebrtc/pc/sdp_offer_answer.cc b/third_party/libwebrtc/pc/sdp_offer_answer.cc @@ -1805,8 +1805,7 @@ RTCError SdpOfferAnswerHandler::ApplyLocalDescription( CS_LOCAL, *local_description(), old_local_description, remote_description(), bundle_groups_by_mid); if (!error.ok()) { - RTC_LOG(LS_ERROR) << error.message() << " (" << SdpTypeToString(type) - << ")"; + RTC_LOG(LS_ERROR) << error.message() << " (" << type << ")"; return error; } if (ConfiguredForMedia()) { @@ -1873,8 +1872,7 @@ RTCError SdpOfferAnswerHandler::ApplyLocalDescription( // description is applied. Restore back to old description. error = CreateChannels(*local_description()->description()); if (!error.ok()) { - RTC_LOG(LS_ERROR) << error.message() << " (" << SdpTypeToString(type) - << ")"; + RTC_LOG(LS_ERROR) << error.message() << " (" << type << ")"; return error; } } @@ -1885,8 +1883,7 @@ RTCError SdpOfferAnswerHandler::ApplyLocalDescription( error = UpdateSessionState(type, CS_LOCAL, local_description()->description(), bundle_groups_by_mid); if (!error.ok()) { - RTC_LOG(LS_ERROR) << error.message() << " (" << SdpTypeToString(type) - << ")"; + RTC_LOG(LS_ERROR) << error.message() << " (" << type << ")"; return error; } diff --git a/third_party/libwebrtc/pc/test/integration_test_helpers.h b/third_party/libwebrtc/pc/test/integration_test_helpers.h @@ -878,7 +878,7 @@ class PeerConnectionIntegrationWrapper : public PeerConnectionObserver, void HandleIncomingAnswer(SdpType type, const std::string& msg) { RTC_LOG(LS_INFO) << debug_name_ << ": HandleIncomingAnswer of type " - << SdpTypeToString(type); + << type; std::unique_ptr<SessionDescriptionInterface> desc = CreateSessionDescription(type, msg); if (received_sdp_munger_) { diff --git a/third_party/libwebrtc/pc/test/peer_connection_test_wrapper.cc b/third_party/libwebrtc/pc/test/peer_connection_test_wrapper.cc @@ -299,8 +299,7 @@ void PeerConnectionTestWrapper::OnSuccess(SessionDescriptionInterface* desc) { EXPECT_TRUE(desc->ToString(&sdp)); RTC_LOG(LS_INFO) << "PeerConnectionTestWrapper " << name_ << ": " - << webrtc::SdpTypeToString(desc->GetType()) - << " sdp created: " << sdp; + << desc->GetType() << " sdp created: " << sdp; SetLocalDescription(desc->GetType(), sdp); @@ -334,8 +333,7 @@ void PeerConnectionTestWrapper::ReceiveAnswerSdp(const std::string& sdp) { void PeerConnectionTestWrapper::SetLocalDescription(SdpType type, const std::string& sdp) { RTC_LOG(LS_INFO) << "PeerConnectionTestWrapper " << name_ - << ": SetLocalDescription " << webrtc::SdpTypeToString(type) - << " " << sdp; + << ": SetLocalDescription " << type << " " << sdp; auto observer = webrtc::make_ref_counted<MockSetSessionDescriptionObserver>(); peer_connection_->SetLocalDescription( @@ -345,8 +343,7 @@ void PeerConnectionTestWrapper::SetLocalDescription(SdpType type, void PeerConnectionTestWrapper::SetRemoteDescription(SdpType type, const std::string& sdp) { RTC_LOG(LS_INFO) << "PeerConnectionTestWrapper " << name_ - << ": SetRemoteDescription " << webrtc::SdpTypeToString(type) - << " " << sdp; + << ": SetRemoteDescription " << type << " " << sdp; auto observer = webrtc::make_ref_counted<MockSetSessionDescriptionObserver>(); peer_connection_->SetRemoteDescription(