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:
@@ -380,6 +380,17 @@ func (r *RTPStatsSender) Update(
|
|||||||
if extTimestamp != r.extHighestTS {
|
if extTimestamp != r.extHighestTS {
|
||||||
// update only on first packet as same timestamp could be in multiple packets.
|
// 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.
|
// 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.highestTime = packetTime
|
||||||
}
|
}
|
||||||
r.extHighestSN = extSequenceNumber
|
r.extHighestSN = extSequenceNumber
|
||||||
|
|||||||
Reference in New Issue
Block a user