Fix empty audio infinite loop

(cherry picked from commit 5ed4ad81c3)
This commit is contained in:
Fabio Iotti 2020-02-04 21:11:38 +00:00 committed by Rémi Verschelde
parent a779774c86
commit 5765154ff2

View file

@ -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++;