mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
Jack: Added missing lock to jack API call
This commit is contained in:
parent
0ea736e144
commit
e84184f28f
1 changed files with 2 additions and 1 deletions
|
|
@ -408,8 +408,9 @@ int jack_set_property_change_callback (jack_client_t* client,
|
||||||
struct client *c = (struct client *) client;
|
struct client *c = (struct client *) client;
|
||||||
|
|
||||||
spa_return_val_if_fail(c != NULL, -EINVAL);
|
spa_return_val_if_fail(c != NULL, -EINVAL);
|
||||||
|
pw_thread_loop_lock(c->context.loop);
|
||||||
c->property_callback = callback;
|
c->property_callback = callback;
|
||||||
c->property_arg = arg;
|
c->property_arg = arg;
|
||||||
|
pw_thread_loop_unlock(c->context.loop);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue