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:
Peter Boström 2016-03-02 14:22:25 +01:00
parent b65f3e39d7
commit 7ecc163d42

View File

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