mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-06-30 13:14:16 -04:00
client-node: clear mix when clearing the node
Even if we don't have a transport we should clear the mix info if there is any available. Fixes #5348
This commit is contained in:
parent
187b9154a6
commit
3c14693bed
1 changed files with 4 additions and 6 deletions
|
|
@ -985,12 +985,10 @@ static void clean_node(struct node_data *d)
|
|||
{
|
||||
struct mix *mix;
|
||||
|
||||
if (d->have_transport) {
|
||||
spa_list_consume(mix, &d->mix[SPA_DIRECTION_INPUT], link)
|
||||
clear_mix(d, mix);
|
||||
spa_list_consume(mix, &d->mix[SPA_DIRECTION_OUTPUT], link)
|
||||
clear_mix(d, mix);
|
||||
}
|
||||
spa_list_consume(mix, &d->mix[SPA_DIRECTION_INPUT], link)
|
||||
clear_mix(d, mix);
|
||||
spa_list_consume(mix, &d->mix[SPA_DIRECTION_OUTPUT], link)
|
||||
clear_mix(d, mix);
|
||||
spa_list_consume(mix, &d->free_mix, link) {
|
||||
spa_list_remove(&mix->link);
|
||||
free(mix);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue