From 02d0802004f0f75afd792429c8b2ee7ec1e253fc Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 21 Nov 2019 13:05:58 +0100 Subject: [PATCH] remote-node: don't enum invalid param ids --- src/modules/module-client-node/remote-node.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/module-client-node/remote-node.c b/src/modules/module-client-node/remote-node.c index 9e3b05de1..b68449374 100644 --- a/src/modules/module-client-node/remote-node.c +++ b/src/modules/module-client-node/remote-node.c @@ -287,6 +287,8 @@ static int add_node_update(struct pw_proxy *proxy, uint32_t change_mask) struct spa_pod *param; id = node->info.params[i].id; + if (id == SPA_PARAM_Invalid) + continue; for (idx = 0;;) { spa_pod_builder_init(&b, buf, sizeof(buf)); @@ -344,6 +346,8 @@ static int add_port_update(struct pw_proxy *proxy, struct pw_port *port, uint32_ struct spa_pod *param; id = port->info.params[i].id; + if (id == SPA_PARAM_Invalid) + continue; for (idx = 0;;) { spa_pod_builder_init(&b, buf, sizeof(buf));