remote-node: don't enum invalid param ids

This commit is contained in:
Wim Taymans 2019-11-21 13:05:58 +01:00
parent e9eabead4b
commit 02d0802004

View file

@ -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));