Drop the RTT as input to IsRetransmitOfOldPacket.

Bug: webrtc:7135
Change-Id: I532334934a757ba0ea6a2daf97b0f1cfd04246e6
Reviewed-on: https://webrtc-review.googlesource.com/12320
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Stefan Holmer <stefan@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23366}
This commit is contained in:
Niels Möller
2018-05-23 13:54:51 +02:00
committed by Commit Bot
parent 89ee4a6c8c
commit eda0087e57
5 changed files with 14 additions and 24 deletions

View File

@ -916,9 +916,7 @@ bool Channel::IsPacketRetransmitted(const RTPHeader& header,
if (!statistician)
return false;
// Check if this is a retransmission.
int64_t min_rtt = 0;
_rtpRtcpModule->RTT(rtp_receiver_->SSRC(), NULL, NULL, &min_rtt, NULL);
return !in_order && statistician->IsRetransmitOfOldPacket(header, min_rtt);
return !in_order && statistician->IsRetransmitOfOldPacket(header);
}
int32_t Channel::ReceivedRTCPPacket(const uint8_t* data, size_t length) {