Index: webrtc/modules/rtp_rtcp/source/rtcp_sender.cc |
diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_sender.cc b/webrtc/modules/rtp_rtcp/source/rtcp_sender.cc |
index e3cf65ef08f04f266268a92240d6cae3cd2f46fe..97cf8caa92bf8e4169afbd61194f5204aa17b4b5 100644 |
--- a/webrtc/modules/rtp_rtcp/source/rtcp_sender.cc |
+++ b/webrtc/modules/rtp_rtcp/source/rtcp_sender.cc |
@@ -244,6 +244,10 @@ bool RTCPSender::REMB() const { |
void RTCPSender::SetREMBStatus(bool enable) { |
rtc::CritScope lock(&critical_section_rtcp_sender_); |
remb_enabled_ = enable; |
+ if (!enable) { |
+ // Stop sending remb each report until it is reenabled and remb data set. |
+ ConsumeFlag(kRtcpRemb, true); |
+ } |
} |
void RTCPSender::SetREMBData(uint32_t bitrate, |