summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-07-30 20:59:45 +0200
committerGitHub <noreply@github.com>2017-07-30 20:59:45 +0200
commit93c226f7a38fc4976e93a5fb693ff22edede0738 (patch)
treec38e6ce87f64090b24910ab28e1e599d4e3a2de9 /modules
parent263452ee91c7d76f3a2b1503ce8fbd0d35bbb6e4 (diff)
parent207f596e69bcf822fa83f93251a947a85b77505d (diff)
Merge pull request #9964 from supagu/audio_fix
Fixed AudioStreamPlaybackOGGVorbis::_mix_internal getting stuck in in…
Diffstat (limited to 'modules')
-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 c645a55703..7b8b2abebb 100644
--- a/modules/stb_vorbis/audio_stream_ogg_vorbis.cpp
+++ b/modules/stb_vorbis/audio_stream_ogg_vorbis.cpp
@@ -39,7 +39,7 @@ void AudioStreamPlaybackOGGVorbis::_mix_internal(AudioFrame *p_buffer, int p_fra
int todo = p_frames;
- while (todo) {
+ while (todo && active) {
int mixed = stb_vorbis_get_samples_float_interleaved(ogg_stream, 2, (float *)p_buffer, todo * 2);
todo -= mixed;