Fix bug in PacketQueue2: prioritize the stream with the least sent data.

Bug: webrtc:8288
Change-Id: Idce66e4bad2cb7e5281d309317f4e135ce795735
Reviewed-on: https://webrtc-review.googlesource.com/35840
Reviewed-by: Philip Eliasson <philipel@webrtc.org>
Commit-Queue: Ilya Nikolaevskiy <ilnik@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21415}
This commit is contained in:
Ilya Nikolaevskiy 2017-12-21 15:39:33 +01:00 committed by Commit Bot
parent a40f82438a
commit c3216e1b1d

View File

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