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:
parent
70dee15f5c
commit
8fda40b544
1 changed files with 4 additions and 1 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue