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

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

Issue 1750403003: Report all packets to bitrate probing. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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 | « no previous file | 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 1b45adcf89557fea7d5726976dc77a356f35e651..b56d28510f2dc7c6cd377076506da81b987fd09f 100644
--- a/webrtc/modules/pacing/paced_sender.cc
+++ b/webrtc/modules/pacing/paced_sender.cc
@@ -431,13 +431,15 @@ bool PacedSender::SendPacket(const paced_sender::Packet& packet) {
packet.retransmission);
critsect_->Enter();
- // TODO(holmer): High priority packets should only be accounted for if we are
- // allocating bandwidth for audio.
- if (success && packet.priority != kHighPriority) {
- // Update media bytes sent.
+ if (success) {
prober_->PacketSent(clock_->TimeInMilliseconds(), packet.bytes);
- media_budget_->UseBudget(packet.bytes);
- padding_budget_->UseBudget(packet.bytes);
+ // TODO(holmer): High priority packets should only be accounted for if we
+ // are allocating bandwidth for audio.
+ if (packet.priority != kHighPriority) {
+ // Update media bytes sent.
+ media_budget_->UseBudget(packet.bytes);
+ padding_budget_->UseBudget(packet.bytes);
+ }
}
return success;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698