Reland "Avoid calling OnRoundTripTimeUpdate with invalid RTTs."
This is a reland of afa61c94e50e2737d4d4b22d7a830845e763cf27 Original change's description: > Avoid calling OnRoundTripTimeUpdate with invalid RTTs. > > Bug: none > Change-Id: Ic19b87ad7094465da6091d0e99b10a6d1b7d2e58 > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/128776 > Commit-Queue: Christoffer Rodbro <crodbro@webrtc.org> > Reviewed-by: Sebastian Jansson <srte@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#27308} Bug: none Change-Id: Ic5669a27ea66ab0c207556c54bb595c83850ffd3 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/129924 Reviewed-by: Sebastian Jansson <srte@webrtc.org> Commit-Queue: Christoffer Rodbro <crodbro@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27315}
This commit is contained in:

committed by
Commit Bot

parent
4d9df38d82
commit
4bd3177ae5
@ -400,7 +400,7 @@ void RtpTransportControllerSend::OnReceivedRtcpReceiverReport(
|
||||
report.receive_time = Timestamp::ms(now_ms);
|
||||
report.round_trip_time = TimeDelta::ms(rtt_ms);
|
||||
report.smoothed = false;
|
||||
if (controller_)
|
||||
if (controller_ && !report.round_trip_time.IsZero())
|
||||
PostUpdates(controller_->OnRoundTripTimeUpdate(report));
|
||||
});
|
||||
}
|
||||
|
@ -229,6 +229,7 @@ NetworkControlUpdate GoogCcNetworkController::OnRoundTripTimeUpdate(
|
||||
RoundTripTimeUpdate msg) {
|
||||
if (packet_feedback_only_ || msg.smoothed)
|
||||
return NetworkControlUpdate();
|
||||
RTC_DCHECK(!msg.round_trip_time.IsZero());
|
||||
if (delay_based_bwe_)
|
||||
delay_based_bwe_->OnRttUpdate(msg.round_trip_time);
|
||||
bandwidth_estimation_->UpdateRtt(msg.round_trip_time, msg.receive_time);
|
||||
|
Reference in New Issue
Block a user