mirror of
https://github.com/livekit/livekit.git
synced 2026-10-22 11:32:27 +00:00
Fix nil pointer dereference (#1949)
This commit is contained in:
1 parent
0e9ec9a21e
commit
f22d1e5a75
1 file changed
+3
-1
@@ -770,7 +770,9 @@ func (r *RTPStats) MaybeAdjustFirstPacketTime(srData *RTCPSenderReportData) {
|
||||
r.lock.Lock()
|
||||
defer r.lock.Unlock()
|
||||
|
||||
r.maybeAdjustFirstPacketTime(srData.RTPTimestampExt)
|
||||
if srData != nil {
|
||||
r.maybeAdjustFirstPacketTime(srData.RTPTimestampExt)
|
||||
}
|
||||
}
|
||||
|
||||
func (r *RTPStats) maybeAdjustFirstPacketTime(extTS uint64) {
|
||||
|
||||
Reference in new issue
Block a user