| Index: webrtc/call/flexfec_receive_stream_impl.cc
|
| diff --git a/webrtc/call/flexfec_receive_stream_impl.cc b/webrtc/call/flexfec_receive_stream_impl.cc
|
| index a1e9bc64ecccb2f70525812bc564d575f6161a96..22b71f0d5ceb44abf726f13429f50366d2b1b72b 100644
|
| --- a/webrtc/call/flexfec_receive_stream_impl.cc
|
| +++ b/webrtc/call/flexfec_receive_stream_impl.cc
|
| @@ -168,11 +168,8 @@ FlexfecReceiveStreamImpl::~FlexfecReceiveStreamImpl() {
|
| }
|
|
|
| void FlexfecReceiveStreamImpl::OnRtpPacket(const RtpPacketReceived& packet) {
|
| - {
|
| - rtc::CritScope cs(&crit_);
|
| - if (!started_)
|
| - return;
|
| - }
|
| + if (!started_.load())
|
| + return;
|
|
|
| if (!receiver_)
|
| return;
|
| @@ -191,13 +188,11 @@ void FlexfecReceiveStreamImpl::OnRtpPacket(const RtpPacketReceived& packet) {
|
| }
|
|
|
| void FlexfecReceiveStreamImpl::Start() {
|
| - rtc::CritScope cs(&crit_);
|
| - started_ = true;
|
| + started_.store(true);
|
| }
|
|
|
| void FlexfecReceiveStreamImpl::Stop() {
|
| - rtc::CritScope cs(&crit_);
|
| - started_ = false;
|
| + started_.store(false);
|
| }
|
|
|
| // TODO(brandtr): Implement this member function when we have designed the
|
|
|