| Index: webrtc/call/call.cc
|
| diff --git a/webrtc/call/call.cc b/webrtc/call/call.cc
|
| index f6354ade28e89e17037e9b03a3750058efc4b3fc..ceec963ee29a04b2f2f9f8f11dfa446d0861db86 100644
|
| --- a/webrtc/call/call.cc
|
| +++ b/webrtc/call/call.cc
|
| @@ -735,6 +735,12 @@ void Call::OnNetworkChanged(uint32_t target_bitrate_bps, uint8_t fraction_loss,
|
| // Ignore updates where the bitrate is zero because the aggregate network
|
| // state is down.
|
| if (target_bitrate_bps > 0) {
|
| + {
|
| + ReadLockScoped read_lock(*send_crit_);
|
| + // Do not update the stats if we are not sending video.
|
| + if (video_send_streams_.empty())
|
| + return;
|
| + }
|
| rtc::CritScope lock(&bitrate_crit_);
|
| // We only update these stats if we have send streams, and assume that
|
| // OnNetworkChanged is called roughly with a fixed frequency.
|
|
|