mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
audio/mp3: Change the timeout for decoding (for Firefox)
This commit is contained in:
parent
ad54538d07
commit
3855bcc5a4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user