pipewire-jack: do not dereference value from `pw_data_loop_get_thread()`

`pw_data_loop_get_thread()` returns a `pthread_t` cast to `struct spa_thread *`,
so simply casting it back to `pthread_t` is enough.
This commit is contained in:
Barnabás Pőcze 2022-08-11 16:50:05 +02:00
parent 3f3b70ad83
commit 1275fc99df
1 changed files with 1 additions and 1 deletions

View File

@ -3777,7 +3777,7 @@ jack_native_thread_t jack_client_thread_id (jack_client_t *client)
thr = pw_data_loop_get_thread(c->loop);
if (thr == NULL)
return pthread_self();
return *(pthread_t*)thr;
return (pthread_t) thr;
}
SPA_EXPORT