| Index: webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc
|
| diff --git a/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc b/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc
|
| index e6e2187de707ddac41f03854778707ac7363f18c..2c8786b906c4755f1222be95f6f2ed1b73217097 100644
|
| --- a/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc
|
| +++ b/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc
|
| @@ -182,8 +182,12 @@ int32_t ModuleRtpRtcpImpl::Process() {
|
| // Get processed rtt.
|
| if (process_rtt) {
|
| last_rtt_process_time_ = now;
|
| - if (rtt_stats_)
|
| - set_rtt_ms(rtt_stats_->LastProcessedRtt());
|
| + if (rtt_stats_) {
|
| + // Make sure we have a valid RTT before setting.
|
| + int64_t last_rtt = rtt_stats_->LastProcessedRtt();
|
| + if (last_rtt >= 0)
|
| + set_rtt_ms(last_rtt);
|
| + }
|
| }
|
|
|
| // For sending streams, make sure to not send a SR before media has been sent.
|
|
|