Set delay in receiver report to 0 if no sender report received.
This commit is contained in:
+4
-1
@@ -585,7 +585,10 @@ func sendRR(conn *upConnection) error {
|
|||||||
lost = expected - 1
|
lost = expected - 1
|
||||||
}
|
}
|
||||||
lastSR := atomic.LoadUint32(&t.lastSenderReport)
|
lastSR := atomic.LoadUint32(&t.lastSenderReport)
|
||||||
delay := now - atomic.LoadUint32(&t.lastSenderReportTime)
|
var delay uint32
|
||||||
|
if lastSR != 0 {
|
||||||
|
delay = now - atomic.LoadUint32(&t.lastSenderReportTime)
|
||||||
|
}
|
||||||
|
|
||||||
reports = append(reports, rtcp.ReceptionReport{
|
reports = append(reports, rtcp.ReceptionReport{
|
||||||
SSRC: t.track.SSRC(),
|
SSRC: t.track.SSRC(),
|
||||||
|
|||||||
Reference in New Issue
Block a user