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
+12 -1
View File
@@ -394,7 +394,18 @@ func (r *RTPStatsSender) Update(
"tsBefore", r.extStartTS,
"tsAfter", extTimestamp,
)
r.extStartTS = 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
}
}
if extTimestamp > r.extHighestTS {