mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
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:
parent
3f3b70ad83
commit
1275fc99df
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue