mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05: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)
|
jack_native_thread_t jack_client_thread_id (jack_client_t *client)
|
||||||
{
|
{
|
||||||
struct client *c = (struct client *) client;
|
struct client *c = (struct client *) client;
|
||||||
void *thr;
|
|
||||||
|
|
||||||
spa_return_val_if_fail(c != NULL, (pthread_t){0});
|
spa_return_val_if_fail(c != NULL, (pthread_t){0});
|
||||||
|
|
||||||
thr = pw_data_loop_get_thread(c->loop);
|
return (jack_native_thread_t)pw_data_loop_get_thread(c->loop);
|
||||||
if (thr == NULL)
|
|
||||||
return pthread_self();
|
|
||||||
return (pthread_t) thr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SPA_EXPORT
|
SPA_EXPORT
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue