diff --git a/spa/plugins/support/loop.c b/spa/plugins/support/loop.c index 1b406866f..2d2ca8656 100644 --- a/spa/plugins/support/loop.c +++ b/spa/plugins/support/loop.c @@ -1171,7 +1171,7 @@ impl_init(const struct spa_handle_factory *factory, goto error_exit_free_poll; } - if (tss_create(&impl->queue_tss_id, (tss_dtor_t)loop_queue_destroy) != 0) { + if (tss_create(&impl->queue_tss_id, (tss_dtor_t)loop_queue_destroy) != thrd_success) { res = -errno; spa_log_error(impl->log, "%p: can't create tss: %m", impl); goto error_exit_free_wakeup;