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

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

Issue 1688703002: Prevent busy-looping PacedSender on small packets. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: remove packet_size_last_send_ = 0 and rename constant Created 4 years, 10 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 | « webrtc/modules/pacing/bitrate_prober_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/pacing/paced_sender.cc
diff --git a/webrtc/modules/pacing/paced_sender.cc b/webrtc/modules/pacing/paced_sender.cc
index 23b172c6665d3f9d3dd98c1254e9eda6cdfd76a8..c32d365668d484a0df6445fc7f2e277c576944e0 100644
--- a/webrtc/modules/pacing/paced_sender.cc
+++ b/webrtc/modules/pacing/paced_sender.cc
@@ -323,9 +323,9 @@ void PacedSender::InsertPacket(RtpPacketSender::Priority priority,
if (probing_enabled_ && !prober_->IsProbing())
prober_->SetEnabled(true);
- prober_->MaybeInitializeProbe(bitrate_bps_);
-
int64_t now_ms = clock_->TimeInMilliseconds();
+ prober_->OnIncomingPacket(bitrate_bps_, bytes, now_ms);
+
if (capture_time_ms < 0)
capture_time_ms = now_ms;
« no previous file with comments | « webrtc/modules/pacing/bitrate_prober_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698