mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
jack: client_thread_id() returns NULL
client_thread_id() returns NULL on jack1 and jack2 when the client is not activated yet, so do the same here.
This commit is contained in:
parent
25f40e4c2a
commit
38e3c2be6c
1 changed files with 1 additions and 5 deletions
|
|
@ -3780,14 +3780,10 @@ SPA_EXPORT
|
|||
jack_native_thread_t jack_client_thread_id (jack_client_t *client)
|
||||
{
|
||||
struct client *c = (struct client *) client;
|
||||
void *thr;
|
||||
|
||||
spa_return_val_if_fail(c != NULL, (pthread_t){0});
|
||||
|
||||
thr = pw_data_loop_get_thread(c->loop);
|
||||
if (thr == NULL)
|
||||
return pthread_self();
|
||||
return (pthread_t) thr;
|
||||
return (jack_native_thread_t)pw_data_loop_get_thread(c->loop);
|
||||
}
|
||||
|
||||
SPA_EXPORT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue