Commit 8fda40b5 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

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

parent 70dee15f
...@@ -585,7 +585,10 @@ func sendRR(conn *upConnection) error { ...@@ -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(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment