From 3855bcc5a4315c4a4e4eef38ce5ac1f8506c7083 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 26 Dec 2017 00:59:08 +0900 Subject: [PATCH] audio/mp3: Change the timeout for decoding (for Firefox) --- audio/mp3/decode_js.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/mp3/decode_js.go b/audio/mp3/decode_js.go index c2c94f218..2bfd12456 100644 --- a/audio/mp3/decode_js.go +++ b/audio/mp3/decode_js.go @@ -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