Report all packets to bitrate probing.
Allows probing with audio packets to finish, preventing a busy loop for high-bitrate audio-only calls. BUG=chromium:589931, webrtc:5506 R=stefan@webrtc.org Review URL: https://codereview.webrtc.org/1750403003 . Cr-Commit-Position: refs/heads/master@{#11840}
This commit is contained in:
parent
b65f3e39d7
commit
7ecc163d42
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user