Merge pull request #55846 from ellenhp/fix_ogg_edge_cases

Fix ogg edge cases
This commit is contained in:
Rémi Verschelde
2022-06-22 23:33:51 +02:00
committed by GitHub
3 changed files with 23 additions and 27 deletions

View File

@ -38,7 +38,9 @@
#include "core/io/file_access.h"
int AudioStreamPlaybackMP3::_mix_internal(AudioFrame *p_buffer, int p_frames) {
ERR_FAIL_COND_V(!active, 0);
if (!active) {
return 0;
}
int todo = p_frames;