mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-04 01:51:06 +00:00
Add missing check for ladspa_is_active to ladsap_control_defaults
This commit is contained in:
parent
29a4abb9a5
commit
47d640571b
1 changed files with 5 additions and 0 deletions
|
@ -812,6 +812,11 @@ int fluid_ladspa_control_defaults(fluid_ladspa_fx_t *fx)
|
||||||
|
|
||||||
LADSPA_API_ENTER(fx);
|
LADSPA_API_ENTER(fx);
|
||||||
|
|
||||||
|
if (fluid_ladspa_is_active(fx))
|
||||||
|
{
|
||||||
|
LADSPA_API_RETURN(fx, FLUID_FAILED);
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 0; i < fx->num_plugins; i++)
|
for (i = 0; i < fx->num_plugins; i++)
|
||||||
{
|
{
|
||||||
if (connect_default_control_nodes(fx, fx->plugins[i]) != FLUID_OK)
|
if (connect_default_control_nodes(fx, fx->plugins[i]) != FLUID_OK)
|
||||||
|
|
Loading…
Reference in a new issue