From d17f68c047dfe35977d3c63640154a350a20e6cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Sun, 8 Jun 2025 23:36:46 +0200 Subject: [PATCH] pipewire: thread: impl_join(): return negative error code `pthread_*` functions return a positive error code, but a negative one is expected, so negate the return value. --- src/pipewire/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipewire/thread.c b/src/pipewire/thread.c index defa6a686..8bba05501 100644 --- a/src/pipewire/thread.c +++ b/src/pipewire/thread.c @@ -125,7 +125,7 @@ static struct spa_thread *impl_create(void *object, static int impl_join(void *object, struct spa_thread *thread, void **retval) { pthread_t pt = (pthread_t)thread; - return pthread_join(pt, retval); + return -pthread_join(pt, retval); } static int impl_get_rt_range(void *object, const struct spa_dict *props,