Index: webrtc/video/end_to_end_tests.cc |
diff --git a/webrtc/video/end_to_end_tests.cc b/webrtc/video/end_to_end_tests.cc |
index 528338defe0adee2c5242abad5f09e1c6a59ef0c..60063f49a35d705924837732f94027e14400d1eb 100644 |
--- a/webrtc/video/end_to_end_tests.cc |
+++ b/webrtc/video/end_to_end_tests.cc |
@@ -98,16 +98,19 @@ class EndToEndTest : public test::CallTest { |
bool SendRtp(const uint8_t* packet, |
size_t length, |
const PacketOptions& options) override { |
+ rtc::CritScope lock(&crit_); |
need_rtp_ = false; |
return true; |
} |
bool SendRtcp(const uint8_t* packet, size_t length) override { |
+ rtc::CritScope lock(&crit_); |
need_rtcp_ = false; |
return true; |
} |
bool need_rtp_; |
bool need_rtcp_; |
+ rtc::CriticalSection crit_; |
}; |
void DecodesRetransmittedFrame(bool enable_rtx, bool enable_red); |