summaryrefslogtreecommitdiff
path: root/pipewire-jack/src/pipewire-jack.c
diff options
context:
space:
mode:
Diffstat (limited to 'pipewire-jack/src/pipewire-jack.c')
-rw-r--r--pipewire-jack/src/pipewire-jack.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/pipewire-jack/src/pipewire-jack.c b/pipewire-jack/src/pipewire-jack.c
index 1ebd9799..23e00f18 100644
--- a/pipewire-jack/src/pipewire-jack.c
+++ b/pipewire-jack/src/pipewire-jack.c
@@ -606,9 +606,16 @@ static void on_node_proxy_destroy(void *data)
}
+static void on_node_proxy_bound(void *data, uint32_t global_id)
+{
+ struct client *client = data;
+ client->node_id = global_id;
+}
+
static const struct pw_proxy_events proxy_events = {
PW_VERSION_PROXY_EVENTS,
.destroy = on_node_proxy_destroy,
+ .bound = on_node_proxy_bound,
};
static struct link *find_activation(struct pw_array *links, uint32_t node_id)
@@ -1094,7 +1101,6 @@ static void clean_transport(struct client *c)
}
static int client_node_transport(void *object,
- uint32_t node_id,
int readfd, int writefd,
uint32_t mem_id, uint32_t offset, uint32_t size)
{
@@ -1102,8 +1108,6 @@ static int client_node_transport(void *object,
clean_transport(c);
- c->node_id = node_id;
-
c->mem = pw_mempool_map_id(c->remote->pool, mem_id,
PW_MEMMAP_FLAG_READWRITE, offset, size, NULL);
if (c->mem == NULL) {