mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
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:
parent
331bb2f1ed
commit
d17f68c047
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ static struct spa_thread *impl_create(void *object,
|
||||||
static int impl_join(void *object, struct spa_thread *thread, void **retval)
|
static int impl_join(void *object, struct spa_thread *thread, void **retval)
|
||||||
{
|
{
|
||||||
pthread_t pt = (pthread_t)thread;
|
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,
|
static int impl_get_rt_range(void *object, const struct spa_dict *props,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue