diff --git a/libs/ardour/lua_api.cc b/libs/ardour/lua_api.cc index c6e5a1c228..6f85656fc4 100644 --- a/libs/ardour/lua_api.cc +++ b/libs/ardour/lua_api.cc @@ -830,7 +830,9 @@ LuaAPI::Vamp::analyze (boost::shared_ptr r, uint32_t channel, features = _plugin->process (bufs, ::Vamp::RealTime::fromSeconds ((double) pos / _sample_rate)); if (cb.type () == LUA_TFUNCTION) { - cb (&features, pos); + if (cb (&features, pos)) { + break; + } } pos += std::min (_stepsize, to_read);