Fix time stamp adjustment when starting with dummy packets. (#2053)

* Fix time stamp adjustment when starting with dmummy packets.

- Populated extended values in ExtPacket on dummy packet.
- Have to pass reference time stamp offset to first packet time
  adjustment.

* display participant version info
This commit is contained in:
Raja Subramanian
2023-09-09 17:33:26 +05:30
committed by GitHub
parent d24f409354
commit b5f2f83278
5 changed files with 51 additions and 25 deletions
+2 -4
View File
@@ -863,13 +863,11 @@ func (r *RTPStats) GetRtt() uint32 {
return r.rtt
}
func (r *RTPStats) MaybeAdjustFirstPacketTime(srData *RTCPSenderReportData) {
func (r *RTPStats) MaybeAdjustFirstPacketTime(ets uint64) {
r.lock.Lock()
defer r.lock.Unlock()
if srData != nil {
r.maybeAdjustFirstPacketTime(srData.RTPTimestampExt)
}
r.maybeAdjustFirstPacketTime(ets)
}
func (r *RTPStats) maybeAdjustFirstPacketTime(ets uint64) {