audio: Bug fix: Deadlock in ensurePlayer

Updates #1709
This commit is contained in:
Hajime Hoshi 2021-07-10 19:52:12 +09:00
parent 1e3df9f391
commit 502455f5b2

View File

@ -118,9 +118,6 @@ func (p *readerPlayer) ensurePlayer() error {
}()
}
p.m.Lock()
defer p.m.Unlock()
if p.stream == nil {
s, err := newTimeStream(p.src, p.factory.sampleRate)
if err != nil {