From afd2bbaa5f8bda7ad1e830d75d80fbdffbbd08ec Mon Sep 17 00:00:00 2001 From: Ellen Poe Date: Sat, 11 Dec 2021 22:06:36 -0800 Subject: Fix ogg edge cases --- modules/minimp3/audio_stream_mp3.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/minimp3') 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; -- cgit v1.2.3