mirror of
https://github.com/livekit/livekit.git
synced 2026-08-27 22:34:25 +00:00
Store buffer after creating it. (#4186)
* Refactor receiver and buffer into Base and higher layer. To be able to share code/functionality with relay. * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * clean up * deps * fix test * fix test * Store buffer after creating it. Also changing signature of creator function as it could call TrackInfo() and get into a deadlock. * fix double unlock * add some more debug logging
This commit is contained in:
@@ -311,6 +311,11 @@ func (b *Buffer) getOnClose() func() {
|
||||
|
||||
func (b *Buffer) sendPLI() {
|
||||
ssrc := b.BufferBase.SSRC()
|
||||
if ssrc == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
b.logger.Debugw("send pli", "mediaSSRC", ssrc)
|
||||
pli := []rtcp.Packet{
|
||||
&rtcp.PictureLossIndication{
|
||||
SenderSSRC: ssrc,
|
||||
|
||||
Reference in New Issue
Block a user