mirror of
https://github.com/jech/galene.git
synced 2024-11-09 02:05:59 +01:00
Set time offsets and cname as soon as possible.
This commit is contained in:
parent
e673cf1225
commit
af462329ab
1 changed files with 7 additions and 0 deletions
|
@ -449,6 +449,13 @@ func (up *rtpUpTrack) AddLocal(local conn.DownTrack) error {
|
|||
return nil
|
||||
}
|
||||
}
|
||||
if up.srNTPTime != 0 {
|
||||
local.SetTimeOffset(up.srNTPTime, up.srRTPTime)
|
||||
}
|
||||
cname, ok := up.cname.Load().(string)
|
||||
if ok && cname != "" {
|
||||
local.SetCname(cname)
|
||||
}
|
||||
up.local = append(up.local, local)
|
||||
up.mu.Unlock()
|
||||
|
||||
|
|
Loading…
Reference in a new issue