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.
This commit is contained in:
Barnabás Pőcze 2025-06-08 23:36:46 +02:00 committed by Wim Taymans
parent 331bb2f1ed
commit d17f68c047

View file

@ -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,