Fix Lua get_processor_param API

This commit is contained in:
Robin Gareus 2021-04-14 17:53:56 +02:00
parent 37243ce61b
commit f410dc433c
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -244,7 +244,7 @@ ARDOUR::LuaAPI::get_processor_param (boost::shared_ptr<Processor> proc, uint32_t
{ {
ok=false; ok=false;
boost::shared_ptr<PluginInsert> pi = boost::dynamic_pointer_cast<PluginInsert> (proc); boost::shared_ptr<PluginInsert> pi = boost::dynamic_pointer_cast<PluginInsert> (proc);
if (!pi) { return false; } if (!pi) { ok = false; return 0;}
return get_plugin_insert_param (pi, which, ok); return get_plugin_insert_param (pi, which, ok);
} }