summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2019-07-16 18:49:41 +0200
committerWim Taymans <wtaymans@redhat.com>2019-07-16 18:49:41 +0200
commit71938e6c77ab6d4744c648c5b5e25a6b1731806c (patch)
tree1746593b56eeacc37d4db997a7b0d89fa34ba818
parent7bb27344ba3dbf4755cf085e170099f76935a472 (diff)
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.
-rw-r--r--src/modules/module-client-device/protocol-native.c1
-rw-r--r--src/modules/module-protocol-native/protocol-native.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/module-client-device/protocol-native.c b/src/modules/module-client-device/protocol-native.c
index a283dcec..a5e71ed0 100644
--- a/src/modules/module-client-device/protocol-native.c
+++ b/src/modules/module-client-device/protocol-native.c
@@ -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,
diff --git a/src/modules/module-protocol-native/protocol-native.c b/src/modules/module-protocol-native/protocol-native.c
index d9c06a83..03f0c544 100644
--- a/src/modules/module-protocol-native/protocol-native.c
+++ b/src/modules/module-protocol-native/protocol-native.c
@@ -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,