mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
remote-node: suspend node before cleanup
When the proxy is destroyed, suspend the node before we start removing the memory or else the node might still be using it from the data thread and crash.
This commit is contained in:
parent
e4e03fa7dd
commit
b4b7ba4cbb
1 changed files with 4 additions and 2 deletions
|
|
@ -1034,10 +1034,12 @@ static void client_node_destroy(void *_data)
|
|||
|
||||
pw_log_debug("%p: destroy", data);
|
||||
|
||||
clean_node(data);
|
||||
|
||||
spa_hook_remove(&data->node_listener);
|
||||
|
||||
pw_impl_node_set_state(data->node, PW_NODE_STATE_SUSPENDED);
|
||||
|
||||
clean_node(data);
|
||||
|
||||
data->client_node = NULL;
|
||||
|
||||
if (data->proxy)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue