1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-22 23:35:46 +01:00

Set delay in receiver report to 0 if no sender report received.

This commit is contained in:
Juliusz Chroboczek 2020-06-01 00:26:23 +02:00
parent 70dee15f5c
commit 8fda40b544

View file

@ -585,7 +585,10 @@ func sendRR(conn *upConnection) error {
lost = expected - 1
}
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{
SSRC: t.track.SSRC(),