When clearing LADSPA, also reset connection counts on system nodes

This commit is contained in:
Marcus Weseloh 2017-10-23 22:07:58 +02:00
parent f1cf28b00c
commit 93dbac3535

View file

@ -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;
}
}
/**