mirror of
https://github.com/livekit/livekit.git
synced 2026-10-28 16:32:38 +00:00
Update go deps (#1402)
* Update go deps Generated by renovateBot * use generics with Deque --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: David Zhao <dz@livekit.io>
This commit is contained in:
1 parent
576eb7abbd
commit
2fce780ce8
5 files changed
+24
-24
No files matched your search
@@ -52,7 +52,7 @@ type Buffer struct {
|
||||
videoPool *sync.Pool
|
||||
audioPool *sync.Pool
|
||||
codecType webrtc.RTPCodecType
|
||||
extPackets deque.Deque
|
||||
extPackets deque.Deque[*ExtPacket]
|
||||
pPackets []pendingPacket
|
||||
closeOnce sync.Once
|
||||
mediaSSRC uint32
|
||||
@@ -290,7 +290,7 @@ func (b *Buffer) ReadExtended(buf []byte) (*ExtPacket, error) {
|
||||
}
|
||||
b.Lock()
|
||||
if b.extPackets.Len() > 0 {
|
||||
ep := b.extPackets.PopFront().(*ExtPacket)
|
||||
ep := b.extPackets.PopFront()
|
||||
ep = b.patchExtPacket(ep, buf)
|
||||
if ep == nil {
|
||||
b.Unlock()
|
||||
|
||||
Reference in new issue
Block a user