audio/mp3: Change the timeout for decoding (for Firefox)

This commit is contained in:
Hajime Hoshi 2017-12-26 00:59:08 +09:00
parent ad54538d07
commit 3855bcc5a4

View File

@ -205,7 +205,7 @@ func decode(context *audio.Context, buf []byte) (*Stream, error) {
if err != nil {
return nil, err
}
case <-time.After(time.Second):
case <-time.After(10 * time.Second):
// Sometimes decode fails without calling the callbacks (#464).
// Let's just try again in this case.
return nil, errTimeout