Log highest time update on padding packet. (#2154)

* Log highest time update on padding packet.

Seeing a strange case of what looks like highest time getting
updated on a padding packet. Can't see how it happens in code.
So, logging to check. Will be removing log after checking.

* log sequence number also
This commit is contained in:
Raja Subramanian
2023-10-19 00:53:50 +05:30
committed by GitHub
parent f97242c8ba
commit 7c830ea5b9

View File

@@ -380,6 +380,17 @@ func (r *RTPStatsSender) Update(
if extTimestamp != r.extHighestTS {
// update only on first packet as same timestamp could be in multiple packets.
// NOTE: this may not be the first packet with this time stamp if there is packet loss.
if payloadSize == 0 {
r.logger.Infow(
"updating highest time on padding packet",
"extSequenceNumber", extSequenceNumber,
"extHighestSN", r.extHighestSN,
"extTimestamp", extTimestamp,
"extHighestTS", r.extHighestTS,
"highestTime", r.highestTime.String(),
"packetTime", packetTime.String(),
)
}
r.highestTime = packetTime
}
r.extHighestSN = extSequenceNumber