From 5765154ff2a5783a0a021028bac3b1e3fc706e44 Mon Sep 17 00:00:00 2001 From: Fabio Iotti Date: Tue, 4 Feb 2020 21:11:38 +0000 Subject: [PATCH] Fix empty audio infinite loop (cherry picked from commit 5ed4ad81c3892c73bd53abffe98dc5910f04c23c) --- modules/stb_vorbis/audio_stream_ogg_vorbis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/stb_vorbis/audio_stream_ogg_vorbis.cpp b/modules/stb_vorbis/audio_stream_ogg_vorbis.cpp index b80b126bde2..f2d0f5c9a64 100644 --- a/modules/stb_vorbis/audio_stream_ogg_vorbis.cpp +++ b/modules/stb_vorbis/audio_stream_ogg_vorbis.cpp @@ -57,7 +57,7 @@ void AudioStreamPlaybackOGGVorbis::_mix_internal(AudioFrame *p_buffer, int p_fra if (todo) { //end of file! - if (vorbis_stream->loop) { + if (vorbis_stream->loop && mixed > 0) { //loop seek(vorbis_stream->loop_offset); loops++;