diff options
author | Ellen Poe <ellen@ellenhp.me> | 2021-12-11 22:06:36 -0800 |
---|---|---|
committer | Ellen Poe <ellen@ellenhp.me> | 2022-04-17 14:21:35 -0700 |
commit | afd2bbaa5f8bda7ad1e830d75d80fbdffbbd08ec (patch) | |
tree | beed68b567d4bd452f7a389a5ae95a27b42b9020 /modules/minimp3 | |
parent | 690fefe43ee74c0ae3ed5642f3aefbeb711f9d1c (diff) |
Fix ogg edge cases
Diffstat (limited to 'modules/minimp3')
-rw-r--r-- | modules/minimp3/audio_stream_mp3.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/minimp3/audio_stream_mp3.cpp b/modules/minimp3/audio_stream_mp3.cpp index b5b51403f7..c37bea519f 100644 --- a/modules/minimp3/audio_stream_mp3.cpp +++ b/modules/minimp3/audio_stream_mp3.cpp @@ -38,7 +38,9 @@ #include "core/io/file_access.h" int AudioStreamPlaybackMP3::_mix_internal(AudioFrame *p_buffer, int p_frames) { - ERR_FAIL_COND_V(!active, 0); + if (!active) { + return 0; + } int todo = p_frames; |