Index: webrtc/modules/rtp_rtcp/source/rtp_receiver_strategy.cc |
diff --git a/webrtc/modules/rtp_rtcp/source/rtp_receiver_strategy.cc b/webrtc/modules/rtp_rtcp/source/rtp_receiver_strategy.cc |
index 3797b1bcc20e6907b9341fb3cf6611c1650a4974..69d079f9aa30f7036642275ba5c9b86fc30b9eed 100644 |
--- a/webrtc/modules/rtp_rtcp/source/rtp_receiver_strategy.cc |
+++ b/webrtc/modules/rtp_rtcp/source/rtp_receiver_strategy.cc |
@@ -12,25 +12,22 @@ |
#include <stdlib.h> |
-#include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
- |
namespace webrtc { |
RTPReceiverStrategy::RTPReceiverStrategy(RtpData* data_callback) |
- : crit_sect_(CriticalSectionWrapper::CreateCriticalSection()), |
- data_callback_(data_callback) { |
+ : data_callback_(data_callback) { |
memset(&last_payload_, 0, sizeof(last_payload_)); |
} |
void RTPReceiverStrategy::GetLastMediaSpecificPayload( |
PayloadUnion* payload) const { |
- CriticalSectionScoped cs(crit_sect_.get()); |
+ rtc::CritScope cs(&crit_sect_); |
memcpy(payload, &last_payload_, sizeof(*payload)); |
} |
void RTPReceiverStrategy::SetLastMediaSpecificPayload( |
const PayloadUnion& payload) { |
- CriticalSectionScoped cs(crit_sect_.get()); |
+ rtc::CritScope cs(&crit_sect_); |
memcpy(&last_payload_, &payload, sizeof(last_payload_)); |
} |