mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
remote-node: clear the node io areas when removing the memory
When the memory is removed, clear the node io areas so that it doesn't accidentally get reused. Fixes a crash in cheese when the node is stopped and then resumed.
This commit is contained in:
parent
21657ea2af
commit
97be5687ec
1 changed files with 5 additions and 1 deletions
|
|
@ -144,8 +144,12 @@ static void clean_transport(struct node_data *data)
|
|||
spa_list_consume(l, &data->links, link)
|
||||
clear_link(data, l);
|
||||
|
||||
while ((mm = pw_mempool_find_tag(data->pool, tag, sizeof(uint32_t))) != NULL)
|
||||
while ((mm = pw_mempool_find_tag(data->pool, tag, sizeof(uint32_t))) != NULL) {
|
||||
if (mm->tag[1] == SPA_ID_INVALID)
|
||||
spa_node_set_io(data->node->node, mm->tag[2], NULL, 0);
|
||||
|
||||
pw_memmap_free(mm);
|
||||
}
|
||||
|
||||
pw_memmap_free(data->activation);
|
||||
data->node->rt.activation = data->node->activation->map->ptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue