mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
make client non-busy when sending sync or ping
We need a reply so mark the client non-busy so that we can receive it.
This commit is contained in:
parent
7bb27344ba
commit
71938e6c77
2 changed files with 2 additions and 0 deletions
|
|
@ -86,6 +86,7 @@ static int device_marshal_sync(void *object, int seq)
|
|||
struct pw_resource *resource = object;
|
||||
struct spa_pod_builder *b;
|
||||
|
||||
pw_client_set_busy(pw_resource_get_client(resource), false);
|
||||
b = pw_protocol_native_begin_resource(resource, SPA_DEVICE_METHOD_SYNC, &msg);
|
||||
|
||||
spa_pod_builder_add_struct(b,
|
||||
|
|
|
|||
|
|
@ -379,6 +379,7 @@ static void core_event_marshal_ping(void *object, uint32_t id, int seq)
|
|||
struct spa_pod_builder *b;
|
||||
struct pw_protocol_native_message *msg;
|
||||
|
||||
pw_client_set_busy(pw_resource_get_client(resource), false);
|
||||
b = pw_protocol_native_begin_resource(resource, PW_CORE_PROXY_EVENT_PING, &msg);
|
||||
|
||||
spa_pod_builder_add_struct(b,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue