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

Unified Diff: webrtc/modules/pacing/bitrate_prober.cc

Issue 2033073002: BitrateProber now correctly change state to kWait when the last probing (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 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
Index: webrtc/modules/pacing/bitrate_prober.cc
diff --git a/webrtc/modules/pacing/bitrate_prober.cc b/webrtc/modules/pacing/bitrate_prober.cc
index 8e8e36ea34be202017e81ff584bb9ec7b26e9079..19eaff7a69ad3fbce234bd3714b8f1756d87353f 100644
--- a/webrtc/modules/pacing/bitrate_prober.cc
+++ b/webrtc/modules/pacing/bitrate_prober.cc
@@ -154,6 +154,8 @@ void BitrateProber::PacketSent(int64_t now_ms, size_t packet_size) {
++cluster->sent_probe_packets;
if (cluster->sent_probe_packets == cluster->max_probe_packets)
clusters_.pop();
+ if (clusters_.empty())
+ probing_state_ = kWait;
}
}
} // namespace webrtc
« no previous file with comments | « no previous file | webrtc/modules/pacing/paced_sender.cc » ('j') | webrtc/modules/pacing/paced_sender_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698