mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
audio/mp3: Adjust timeout
This commit is contained in:
parent
3855bcc5a4
commit
50a6158513
@ -205,7 +205,7 @@ func decode(context *audio.Context, buf []byte) (*Stream, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
case <-time.After(10 * time.Second):
|
case <-time.After(3 * time.Second):
|
||||||
// Sometimes decode fails without calling the callbacks (#464).
|
// Sometimes decode fails without calling the callbacks (#464).
|
||||||
// Let's just try again in this case.
|
// Let's just try again in this case.
|
||||||
return nil, errTimeout
|
return nil, errTimeout
|
||||||
|
Loading…
Reference in New Issue
Block a user