From 67ddfc3053f383af4436d1a1a7fbcbc7e4136547 Mon Sep 17 00:00:00 2001 From: Gleb Popov <6yearold@gmail.com> Date: Sun, 15 Sep 2024 16:48:25 +0300 Subject: [PATCH] Use the 'thrd_success' constant when checking for tss_create result --- spa/plugins/support/loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;