Remove StreamStatistician::IsPacketInOrder
this function is now only used in combination with StreamStatistician::IsRetransmitOfOldPacket but IsRetransmitOfOldPacket internally checks if packet is in_order, thus making extra check unnecessary In addition to making code simpler, removing this checks avoids taking two extra CritSection on common code path of incoming rtp packet. Bug: webrtc:8016 Change-Id: I050004e256b5698ce700e3416aa86b55f446a270 Reviewed-on: https://webrtc-review.googlesource.com/85361 Reviewed-by: Niels Moller <nisse@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Reviewed-by: Fredrik Solenberg <solenberg@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23762}
This commit is contained in:
committed by
Commit Bot
parent
968b1dd0d7
commit
64b17c2aca
@ -60,9 +60,6 @@ class StreamStatistician {
|
||||
// Returns true if the packet with RTP header |header| is likely to be a
|
||||
// retransmitted packet, false otherwise.
|
||||
virtual bool IsRetransmitOfOldPacket(const RTPHeader& header) const = 0;
|
||||
|
||||
// Returns true if |sequence_number| is received in order, false otherwise.
|
||||
virtual bool IsPacketInOrder(uint16_t sequence_number) const = 0;
|
||||
};
|
||||
|
||||
class ReceiveStatistics : public ReceiveStatisticsProvider {
|
||||
|
||||
Reference in New Issue
Block a user