mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 15:01:40 +00:00
When clearing LADSPA, also reset connection counts on system nodes
This commit is contained in:
parent
f1cf28b00c
commit
93dbac3535
1 changed files with 7 additions and 0 deletions
|
@ -518,6 +518,13 @@ static void clear_ladspa(fluid_ladspa_fx_t *fx)
|
|||
delete_fluid_ladspa_node(fx->nodes[i]);
|
||||
}
|
||||
fx->num_nodes = num_system_nodes;
|
||||
|
||||
/* Reset connection counts for system nodes */
|
||||
for (i = 0; i < num_system_nodes; i++)
|
||||
{
|
||||
fx->nodes[i]->num_inputs = 0;
|
||||
fx->nodes[i]->num_outputs = 0;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue