diff options
author | Robin Gareus <robin@gareus.org> | 2019-11-01 15:49:46 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-11-01 15:54:36 +0100 |
commit | a5140f45581951a5f70399d3a586987d3eccb3fd (patch) | |
tree | 9f6a7eb894f7abcb7044207704e0ec3ed14f6b67 /libs/ardour/luaproc.cc | |
parent | 7852047dca6312a668edb1ba3fd0d315b3f83ac8 (diff) |
Handle Lua DSP script load failure (unknown plugin)
This handles a very specific edge-case: A script that was
successfully parsed before, fails load on session state restore.
Diffstat (limited to 'libs/ardour/luaproc.cc')
-rw-r--r-- | libs/ardour/luaproc.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/ardour/luaproc.cc b/libs/ardour/luaproc.cc index a4fde50186..e40127f7a5 100644 --- a/libs/ardour/luaproc.cc +++ b/libs/ardour/luaproc.cc @@ -199,6 +199,9 @@ LuaProc::lua_print (std::string s) { bool LuaProc::load_script () { + if (_script.empty ()) { + return true; + } assert (!_lua_dsp); // don't allow to re-initialize LuaPluginInfoPtr lpi; |