protocol-native: fix marshal of add_port

We need to terminate the arguments with NULL.
This commit is contained in:
Wim Taymans 2021-08-03 17:30:08 +02:00
parent edfa210656
commit f4048ae663

View file

@ -401,7 +401,7 @@ static int client_node_demarshal_add_port(void *object, const struct pw_protocol
if (spa_pod_parser_get(&prs,
SPA_POD_Int(&direction),
SPA_POD_Int(&port_id)) < 0)
SPA_POD_Int(&port_id), NULL) < 0)
return -EINVAL;
if (spa_pod_parser_push_struct(&prs, &f[1]) < 0)
@ -670,7 +670,7 @@ client_node_marshal_add_port(void *object,
spa_pod_builder_push_struct(b, &f);
spa_pod_builder_add(b,
SPA_POD_Int(direction),
SPA_POD_Int(port_id));
SPA_POD_Int(port_id), NULL);
push_dict(b, props);
spa_pod_builder_pop(b, &f);