mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
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:
parent
33cd2495b8
commit
8292c556e9
1 changed files with 7 additions and 7 deletions
|
|
@ -560,6 +560,10 @@ client_node_port_set_param(void *object,
|
||||||
|
|
||||||
pw_log_debug("port %p: set param %d %p", port, id, param);
|
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) {
|
if (id == SPA_PARAM_Format) {
|
||||||
struct mix *mix;
|
struct mix *mix;
|
||||||
spa_list_for_each(mix, &data->mix[direction], link) {
|
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;
|
return res;
|
||||||
|
|
||||||
error_exit:
|
error_exit:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue