Index: webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc |
diff --git a/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc b/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc |
index 5875529cfb2849413a813a08c532483ee230b7ab..64f64d8d144f6cd58abfbda08c320be82c2f1951 100644 |
--- a/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc |
+++ b/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc |
@@ -112,7 +112,6 @@ ModuleRtpRtcpImpl::ModuleRtpRtcpImpl(const Configuration& configuration) |
key_frame_req_method_(kKeyFrameReqPliRtcp), |
remote_bitrate_(configuration.remote_bitrate_estimator), |
rtt_stats_(configuration.rtt_stats), |
- critical_section_rtt_(CriticalSectionWrapper::CreateCriticalSection()), |
rtt_ms_(0) { |
// Make sure that RTCP objects are aware of our SSRC. |
uint32_t SSRC = rtp_sender_.SSRC(); |
@@ -982,12 +981,12 @@ void ModuleRtpRtcpImpl::SetRtcpReceiverSsrcs(uint32_t main_ssrc) { |
} |
void ModuleRtpRtcpImpl::set_rtt_ms(int64_t rtt_ms) { |
- CriticalSectionScoped cs(critical_section_rtt_.get()); |
+ rtc::CritScope cs(&critical_section_rtt_); |
rtt_ms_ = rtt_ms; |
} |
int64_t ModuleRtpRtcpImpl::rtt_ms() const { |
- CriticalSectionScoped cs(critical_section_rtt_.get()); |
+ rtc::CritScope cs(&critical_section_rtt_); |
return rtt_ms_; |
} |