Check LADSPA setup before activation

This commit is contained in:
Marcus Weseloh 2017-10-21 19:39:21 +02:00
parent 3486bb515b
commit 7534e54d4f

View file

@ -238,6 +238,12 @@ int fluid_ladspa_activate(fluid_ladspa_fx_t *fx)
LADSPA_API_RETURN(fx, FLUID_FAILED);
}
if (fluid_ladspa_check(fx, NULL, 0) != FLUID_OK)
{
FLUID_LOG(FLUID_ERR, "LADSPA check failed, unable to activate effects");
LADSPA_API_RETURN(fx, FLUID_FAILED);
}
for (i = 0; i < fx->num_plugins; i++)
{
activate_plugin(fx->plugins[i]);