Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Unified Diff: webrtc/modules/congestion_controller/delay_based_bwe.cc

Issue 2239143002: ProbingEstimator: Erase history based on time threshold (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/modules/congestion_controller/probe_bitrate_estimator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/congestion_controller/delay_based_bwe.cc
diff --git a/webrtc/modules/congestion_controller/delay_based_bwe.cc b/webrtc/modules/congestion_controller/delay_based_bwe.cc
index a7d2788ff862d56ad874ee4b4c77e162f0bd565f..641f15d986b7e6a0196d6fba144a5e0ccb7f1fc4 100644
--- a/webrtc/modules/congestion_controller/delay_based_bwe.cc
+++ b/webrtc/modules/congestion_controller/delay_based_bwe.cc
@@ -92,10 +92,9 @@ void DelayBasedBwe::IncomingPacketInfo(const PacketInfo& info) {
last_seen_packet_ms_ = now_ms;
if (info.probe_cluster_id != PacketInfo::kNotAProbe) {
- ProbingResult probe_result =
- probe_bitrate_estimator_.PacketFeedback(info);
- if (probe_result.valid()) {
- remote_rate_.SetEstimate(probe_result.bps, probe_result.timestamp);
+ int bps = probe_bitrate_estimator_.HandleProbeAndEstimateBitrate(info);
+ if (bps > 0) {
+ remote_rate_.SetEstimate(bps, info.arrival_time_ms);
update_estimate = true;
}
}
« no previous file with comments | « no previous file | webrtc/modules/congestion_controller/probe_bitrate_estimator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698