audio: Remove duplicate check for io.Seeker (#1051)

This commit is contained in:
hiroebe 2020-01-10 19:37:31 +09:00 committed by Hajime Hoshi
parent dcad3d21c9
commit ad00414a2a

View File

@ -525,10 +525,6 @@ func (p *Player) Seek(offset time.Duration) error {
}
func (p *playerImpl) Seek(offset time.Duration) error {
if _, ok := p.src.(io.Seeker); !ok {
panic("audio: player to be sought must be io.Seeker")
}
p.m.Lock()
defer p.m.Unlock()