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:
renovate[bot]andDavid Zhao authored and GitHub committed 2023-03-25 23:17:04 -07:00
1 parent 576eb7abbd
commit 2fce780ce8
5 files changed
+24 -24

No files matched your search

+2 -2
View File
@@ -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()