Skip to content

Commit

Permalink
Unreviewed libwebrtc build fix with the latest SDK.
Browse files Browse the repository at this point in the history
* Source/ThirdParty/libwebrtc/Source/webrtc/pc/jsep_transport_controller.cc:

Canonical link: https://commits.webkit.org/270034@main
  • Loading branch information
cdumez committed Oct 31, 2023
1 parent 1034f6e commit 0741825
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ RTCError JsepTransportController::SetLocalDescription(
TRACE_EVENT0("webrtc", "JsepTransportController::SetLocalDescription");
if (!network_thread_->IsCurrent()) {
return network_thread_->BlockingCall(
[=] { return SetLocalDescription(type, description); });
[=, this] { return SetLocalDescription(type, description); });
}

RTC_DCHECK_RUN_ON(network_thread_);
Expand All @@ -101,7 +101,7 @@ RTCError JsepTransportController::SetRemoteDescription(
TRACE_EVENT0("webrtc", "JsepTransportController::SetRemoteDescription");
if (!network_thread_->IsCurrent()) {
return network_thread_->BlockingCall(
[=] { return SetRemoteDescription(type, description); });
[=, this] { return SetRemoteDescription(type, description); });
}

RTC_DCHECK_RUN_ON(network_thread_);
Expand Down Expand Up @@ -362,7 +362,7 @@ void JsepTransportController::SetActiveResetSrtpParams(
bool active_reset_srtp_params) {
if (!network_thread_->IsCurrent()) {
network_thread_->BlockingCall(
[=] { SetActiveResetSrtpParams(active_reset_srtp_params); });
[=, this] { SetActiveResetSrtpParams(active_reset_srtp_params); });
return;
}
RTC_DCHECK_RUN_ON(network_thread_);
Expand All @@ -377,7 +377,7 @@ void JsepTransportController::SetActiveResetSrtpParams(

RTCError JsepTransportController::RollbackTransports() {
if (!network_thread_->IsCurrent()) {
return network_thread_->BlockingCall([=] { return RollbackTransports(); });
return network_thread_->BlockingCall([=, this] { return RollbackTransports(); });
}
RTC_DCHECK_RUN_ON(network_thread_);
bundles_.Rollback();
Expand Down

0 comments on commit 0741825

Please sign in to comment.