Use CallStats for RTT in Call, rather than VideoSendStream::GetRtt()
Also move some stats reporting from vie_channel to send stats proxy BUG= Review URL: https://codereview.webrtc.org/1669623004 Cr-Commit-Position: refs/heads/master@{#11688}
This commit is contained in:
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user