mirror of
https://github.com/livekit/livekit.git
synced 2026-05-25 01:35:39 +00:00
Count repeated NACK only on a hit (#611)
This commit is contained in:
@@ -1082,10 +1082,6 @@ func (d *DownTrack) retransmitPackets(nacks []uint16) {
|
||||
continue
|
||||
}
|
||||
|
||||
if meta.nacked > 1 {
|
||||
numRepeatedNACKs++
|
||||
}
|
||||
|
||||
if pool != nil {
|
||||
PacketFactory.Put(pool)
|
||||
pool = nil
|
||||
@@ -1100,6 +1096,11 @@ func (d *DownTrack) retransmitPackets(nacks []uint16) {
|
||||
}
|
||||
continue
|
||||
}
|
||||
|
||||
if meta.nacked > 1 {
|
||||
numRepeatedNACKs++
|
||||
}
|
||||
|
||||
var pkt rtp.Packet
|
||||
if err = pkt.Unmarshal(pktBuff[:n]); err != nil {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user