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 |
||
|---|---|---|
| .. | ||
| audio | ||
| cdrom | ||
| cpuinfo | ||
| events | ||
| file | ||
| joystick | ||
| loadso/dummy | ||
| main/dummy | ||
| stdlib | ||
| thread | ||
| timer | ||
| video | ||
| SDL.c | ||
| SDL_error.c | ||
| SDL_error_c.h | ||
| SDL_fatal.c | ||
| SDL_fatal.h | ||