Make lite version of RTPStatsReceiver called RTPStatsReceiverLite. (#3065)

* Make lite version of RTPStatsReceiver called RTPStatsReceiverLite.

Refactor around that.

Will probably make some more flavors to have lighter versions still.

* update deps

* use MarshalLogArray

* use util
This commit is contained in:
Raja Subramanian
2024-10-05 10:50:25 +05:30
committed by GitHub
parent 737c85371b
commit 2491ee7c7c
12 changed files with 771 additions and 502 deletions
+2 -4
View File
@@ -731,10 +731,8 @@ func (b *Buffer) updateStreamState(p *rtp.Packet, arrivalTime int64) rtpstats.RT
if b.nacker != nil {
b.nacker.Remove(p.SequenceNumber)
if flowState.HasLoss {
for lost := flowState.LossStartInclusive; lost != flowState.LossEndExclusive; lost++ {
b.nacker.Push(uint16(lost))
}
for lost := flowState.LossStartInclusive; lost != flowState.LossEndExclusive; lost++ {
b.nacker.Push(uint16(lost))
}
}