Skip to content

Commit

Permalink
Fix bug in PacketQueue2: prioritize the stream with the least sent data.
Browse files Browse the repository at this point in the history
Bug: webrtc:8288
Change-Id: Idce66e4bad2cb7e5281d309317f4e135ce795735
Reviewed-on: https://webrtc-review.googlesource.com/35840
Reviewed-by: Philip Eliasson <[email protected]>
Commit-Queue: Ilya Nikolaevskiy <[email protected]>
Cr-Commit-Position: refs/heads/master@{#21415}
  • Loading branch information
Ilya Nikolaevskiy authored and Commit Bot committed Dec 21, 2017
1 parent a40f824 commit c3216e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/pacing/packet_queue2.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class PacketQueue2 : public PacketQueue {
bool operator<(const StreamPrioKey& other) const {
if (priority != other.priority)
return priority < other.priority;
return bytes > other.bytes;
return bytes < other.bytes;
}

const RtpPacketSender::Priority priority;
Expand Down

0 comments on commit c3216e1

Please sign in to comment.