Merge pull request #35912 from bruce965/fix-empty-audio-loop

Fix empty audio infinite loop
This commit is contained in:
Rémi Verschelde 2020-02-05 16:36:10 +01:00 committed by GitHub
commit 7a094fdf40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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