Log error on 0 time stamp. (#2174)

Need backtrace for source of it.
Also, do not reset start if 0, that is incorrect.
This commit is contained in:
Raja Subramanian
2023-10-23 23:00:03 +05:30
committed by GitHub
parent 0f27dda281
commit f4a3618000
+11
View File
@@ -394,8 +394,19 @@ func (r *RTPStatsSender) Update(
"tsBefore", r.extStartTS, "tsBefore", r.extStartTS,
"tsAfter", extTimestamp, "tsAfter", extTimestamp,
) )
if extTimestamp == 0 { // TODO-REMOVE-AFTER-DEBUG
r.logger.Errorw(
"invalid start timestamp", nil,
"snBefore", r.extStartSN,
"snAfter", extSequenceNumber,
"tsBefore", r.extStartTS,
"tsAfter", extTimestamp,
)
}
if extTimestamp != 0 {
r.extStartTS = extTimestamp r.extStartTS = extTimestamp
} }
}
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.