forked from len0rd/rockbox
First was an off-by-one bug in the loop over buffers. The condition was `i < this->hidden->n_buffers', but should have been <=, not <. This wasn't a critical issue, because the last iteration would check the currently playing buffer - an unlikely situation. The second logic bug would make the code always think it had found an empty buffer, even when it had not, since `idx' was being unconditionally set every loop, rendering it unusable for a sentinel value. Fix that. Change-Id: I137330965d699acf827e59b6aa5c5f9ddf2ca617 |
||
---|---|---|
.. | ||
dummy | ||
rockbox | ||
SDL_audio.c | ||
SDL_audio_c.h | ||
SDL_audiocvt.c | ||
SDL_audiodev.c | ||
SDL_audiodev_c.h | ||
SDL_audiomem.h | ||
SDL_mixer.c | ||
SDL_mixer_m68k.c | ||
SDL_mixer_m68k.h | ||
SDL_mixer_MMX.c | ||
SDL_mixer_MMX.h | ||
SDL_mixer_MMX_VC.c | ||
SDL_mixer_MMX_VC.h | ||
SDL_sysaudio.h | ||
SDL_wave.c | ||
SDL_wave.h |