Change-Id: Iaed6e5fca4d8ef74b3edc0d9e9ecc37cc95c9b8e
pull/1163/head
Richard Fuchs 5 years ago
parent 16c9f4c729
commit c881293fdb

@ -80,8 +80,11 @@ static void mix_input_reset(mix_t *mix, unsigned int idx) {
unsigned int mix_get_index(mix_t *mix, void *ptr) { unsigned int mix_get_index(mix_t *mix, void *ptr) {
unsigned int next = mix->next_idx++; unsigned int next = mix->next_idx++;
if (next < NUM_INPUTS) // must be unused if (next < NUM_INPUTS) {
// must be unused
mix->input_ref[next] = ptr;
return next; return next;
}
// too many inputs - find one to re-use // too many inputs - find one to re-use
struct timeval earliest = {0,}; struct timeval earliest = {0,};

Loading…
Cancel
Save