summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-02-05 16:36:10 +0100
committerGitHub <noreply@github.com>2020-02-05 16:36:10 +0100
commit7a094fdf40c4517bb05bd712e8398ff789f9f457 (patch)
tree640d153d1acbd35a808b48c02f18dfac81c5576a
parenta9fbe22ce97abece1400b9f94ddd0d028a1cc361 (diff)
parent5ed4ad81c3892c73bd53abffe98dc5910f04c23c (diff)
Merge pull request #35912 from bruce965/fix-empty-audio-loop
Fix empty audio infinite loop
-rw-r--r--modules/stb_vorbis/audio_stream_ogg_vorbis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/stb_vorbis/audio_stream_ogg_vorbis.cpp b/modules/stb_vorbis/audio_stream_ogg_vorbis.cpp
index b80b126bde..f2d0f5c9a6 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++;