mirror of
https://github.com/jech/galene.git
synced 2024-11-26 02:25:58 +01:00
Send up actions synchronously.
This commit is contained in:
parent
c00a21995e
commit
fd76abb61d
1 changed files with 2 additions and 5 deletions
|
@ -366,15 +366,12 @@ func (up *rtpUpTrack) AddLocal(local conn.DownTrack) error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
up.local = append(up.local, local)
|
up.local = append(up.local, local)
|
||||||
|
up.action(trackActionAdd, local)
|
||||||
// do this asynchronously, to avoid deadlocks when multiple
|
|
||||||
// clients call this simultaneously.
|
|
||||||
go up.action(trackActionAdd, local)
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (up *rtpUpTrack) RequestKeyframe() error {
|
func (up *rtpUpTrack) RequestKeyframe() error {
|
||||||
go up.action(trackActionKeyframe, nil)
|
up.action(trackActionKeyframe, nil)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue