1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-10 02:35:58 +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 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(),