no need for atomic_int_dec_and_test()

This commit is contained in:
derselbst 2017-08-27 12:48:32 +02:00
parent 0bf4873ab2
commit 6b847829ef

View file

@ -188,7 +188,7 @@ static int fluid_rvoice_eventhandler_push_LOCAL(fluid_rvoice_eventhandler_t* han
event = fluid_ringbuffer_get_inptr(handler->queue, old_queue_stored);
if (event == NULL) {
fluid_atomic_int_dec_and_test(&handler->queue_stored);
fluid_atomic_int_add(&handler->queue_stored, -1);
FLUID_LOG(FLUID_WARN, "Ringbuffer full, try increasing polyphony!");
return FLUID_FAILED; // Buffer full...
}