summaryrefslogtreecommitdiff
path: root/src/modules/module-client-node/client-node.c
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2019-05-14 18:08:02 +0200
committerWim Taymans <wtaymans@redhat.com>2019-05-14 18:08:02 +0200
commit903cbeb7c1c758e11c5e8cf6cec8eb9f3a1f2328 (patch)
tree13d38106205dc4aad1e4d03f1d573ec5a452bc6b /src/modules/module-client-node/client-node.c
parent23d4ed62dd8793d88ab8f2dd92544a26f320c43d (diff)
hook: handle port and factory implementation with hook
This way we can also handle the version number.
Diffstat (limited to 'src/modules/module-client-node/client-node.c')
-rw-r--r--src/modules/module-client-node/client-node.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/module-client-node/client-node.c b/src/modules/module-client-node/client-node.c
index aac084fc..7a4548bb 100644
--- a/src/modules/module-client-node/client-node.c
+++ b/src/modules/module-client-node/client-node.c
@@ -1532,9 +1532,7 @@ static void node_port_added(void *data, struct pw_port *port)
PW_PORT_MIX_FLAG_MULTI |
PW_PORT_MIX_FLAG_MIX_ONLY);
- port->implementation = &port_impl;
- port->implementation_data = p;
-
+ port->impl = SPA_HOOK_INIT(&port_impl, p);
port->owner_data = impl;
}