Ignore receiver report till initialized (#1773)
This commit is contained in:
@@ -527,7 +527,7 @@ func (r *RTPStats) UpdateFromReceiverReport(rr rtcp.ReceptionReport) (rtt uint32
|
|||||||
r.lock.Lock()
|
r.lock.Lock()
|
||||||
defer r.lock.Unlock()
|
defer r.lock.Unlock()
|
||||||
|
|
||||||
if !r.endTime.IsZero() || !r.params.IsReceiverReportDriven || rr.LastSequenceNumber < r.extStartSN {
|
if !r.initialized || !r.endTime.IsZero() || !r.params.IsReceiverReportDriven || rr.LastSequenceNumber < r.extStartSN {
|
||||||
// it is possible that the `LastSequenceNumber` in the receiver report is before the starting
|
// it is possible that the `LastSequenceNumber` in the receiver report is before the starting
|
||||||
// sequence number when dummy packets are used to trigger Pion's OnTrack path.
|
// sequence number when dummy packets are used to trigger Pion's OnTrack path.
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user