Skip to content

Commit 15e840a

Browse files
committed
internal/mux: remove duplicated code
Updates #254
1 parent b1d8c7c commit 15e840a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

internal/mux/mux.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,12 +246,7 @@ func (p *playerImpl) setBufferSize(bufferSize int) {
246246
p.bufferSize = p.mux.defaultBufferSize()
247247
}
248248
if orig != p.bufferSize {
249-
p.bufPool = &sync.Pool{
250-
New: func() interface{} {
251-
buf := make([]byte, p.bufferSize)
252-
return &buf
253-
},
254-
}
249+
p.bufPool = nil
255250
}
256251
}
257252

0 commit comments

Comments
 (0)