Fix race condition in estimator.

This commit is contained in:
Juliusz Chroboczek
2022-04-20 21:27:34 +02:00
parent b5f8ea0e23
commit 461c78b0e3
3 changed files with 146 additions and 26 deletions
+2 -2
View File
@@ -1070,8 +1070,8 @@ func sendSR(conn *rtpDownConnection) error {
SSRC: uint32(t.ssrc),
NTPTime: nowNTP,
RTPTime: nowRTP,
PacketCount: p,
OctetCount: b,
PacketCount: uint32(p),
OctetCount: uint32(b),
})
t.setSRTime(jiffies, nowNTP)
}