audio: Remove unneeded 'break'

This commit is contained in:
Hajime Hoshi 2019-01-10 01:37:11 +09:00
parent a6b3f761f8
commit 6d714a16cf
2 changed files with 2 additions and 1 deletions

View File

@ -437,7 +437,6 @@ func (p *playerImpl) readLoop() {
} }
timer = time.NewTimer(time.Millisecond) timer = time.NewTimer(time.Millisecond)
timerCh = timer.C timerCh = timer.C
break
case <-timerCh: case <-timerCh:
// If the buffer has 1 second, that's enough. // If the buffer has 1 second, that's enough.

View File

@ -55,6 +55,8 @@ func (m *mux) Read(b []byte) (int, error) {
allSkipped := true allSkipped := true
// TODO: Now a player is not locked. Should we lock it?
for p := range m.ps { for p := range m.ps {
if p.shouldSkip() { if p.shouldSkip() {
continue continue