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:
Raja Subramanian
2025-12-24 02:55:51 +05:30
committed by GitHub
parent 7c8ea11505
commit e71184dea0
3 changed files with 18 additions and 7 deletions
+5
View File
@@ -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,