Seed duplicate packets and bytes. (#3124)

Had missed this before. This could have cause retransmit packets/bytes
to be high.
This commit is contained in:
Raja Subramanian
2024-10-21 23:58:41 +05:30
committed by GitHub
parent 45b2804df8
commit d4e3c63406
3 changed files with 12 additions and 10 deletions
+3 -7
View File
@@ -195,6 +195,7 @@ func (r *rtpStatsBase) seed(from *rtpStatsBase) bool {
}
r.firstTime = from.firstTime
r.firstTimeAdjustment = from.firstTimeAdjustment
r.highestTime = from.highestTime
r.lastTransit = from.lastTransit
@@ -202,6 +203,8 @@ func (r *rtpStatsBase) seed(from *rtpStatsBase) bool {
r.headerBytes = from.headerBytes
r.packetsDuplicate = from.packetsDuplicate
r.bytesDuplicate = from.bytesDuplicate
r.headerBytesDuplicate = from.headerBytesDuplicate
r.packetsPadding = from.packetsPadding
@@ -213,13 +216,6 @@ func (r *rtpStatsBase) seed(from *rtpStatsBase) bool {
r.jitter = from.jitter
r.maxJitter = from.maxJitter
r.nackAcks = from.nackAcks
r.nackMisses = from.nackMisses
r.nackRepeated = from.nackRepeated
r.plis = from.plis
r.lastPli = from.lastPli
r.firs = from.firs
r.lastFir = from.lastFir