A few misc changes (#915)
- Do not update jitter on padding only packet. Padding only packet may not have proper timestamp. If it does, it probably has the time stamp of the last packet with payload. That will also affect jitter calculation, i. e. wall clock time is moving, but RTP time is the same. - Do not send `onMaxLayer` changed on bind. It was probably racing with update when max layer is updated when adaptive stream is off. There is no need to send that update as the default would be OFF. It will be enabled when adaptive stream subscription turns it on or when max layer is set when down track bind happens and adaptive stream is off.
This commit is contained in:
@@ -294,9 +294,10 @@ func (r *RTPStats) Update(rtph *rtp.Header, payloadSize int, paddingSize int, pa
|
||||
if rtph.Marker {
|
||||
r.frames++
|
||||
}
|
||||
|
||||
r.updateJitter(rtph, packetTime)
|
||||
}
|
||||
|
||||
r.updateJitter(rtph, packetTime)
|
||||
}
|
||||
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user