Always do stats update and header extension processing (#540)

Also, use Errorw for tracking large gap to get a back trace.
This commit is contained in:
Raja Subramanian
2022-03-19 21:29:10 +05:30
committed by GitHub
parent 2155405736
commit 8c9c1fe837
2 changed files with 17 additions and 24 deletions
+2 -2
View File
@@ -212,8 +212,8 @@ func (r *RTPStats) Update(rtph *rtp.Header, payloadSize int, paddingSize int, pa
}
// LK-DEBUG-REMOVE START
if diff > 100 {
logger.Debugw(
"DEBUG huge difference in sequence number",
logger.Errorw(
"DEBUG huge difference in sequence number", nil,
"diff", diff,
"highestSN", r.highestSN,
"sn", rtph.SequenceNumber,