client-node: first set param, then clear buffers

Because setting the param might still access the buffer to do
cleanup.
This commit is contained in:
Wim Taymans 2020-06-04 10:15:37 +02:00
parent 33cd2495b8
commit 8292c556e9

View file

@ -560,6 +560,10 @@ client_node_port_set_param(void *object,
pw_log_debug("port %p: set param %d %p", port, id, param);
res = pw_impl_port_set_param(port, id, flags, param);
if (res < 0)
goto error_exit;
if (id == SPA_PARAM_Format) {
struct mix *mix;
spa_list_for_each(mix, &data->mix[direction], link) {
@ -568,10 +572,6 @@ client_node_port_set_param(void *object,
}
}
res = pw_impl_port_set_param(port, id, flags, param);
if (res < 0)
goto error_exit;
return res;
error_exit: