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:
@@ -394,7 +394,18 @@ func (r *RTPStatsSender) Update(
|
|||||||
"tsBefore", r.extStartTS,
|
"tsBefore", r.extStartTS,
|
||||||
"tsAfter", extTimestamp,
|
"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 {
|
if extTimestamp > r.extHighestTS {
|
||||||
|
|||||||
Reference in New Issue
Block a user