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; |
} |
} |