diff options
author | Robin Gareus <robin@gareus.org> | 2017-04-12 17:37:26 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-04-12 17:37:26 +0200 |
commit | 64f40c09fab28c91892058845c004d12c84636fe (patch) | |
tree | c63d9d3c9047782a9cd69601a4f3dc5576927306 /libs/ardour/luaproc.cc | |
parent | 85c587d7025edbd33ae6e8bbcf06b6e5a2c66bdd (diff) |
Fix setting Plugin-Owner (route) for analysis plugins
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 bae1bd6d3d..5b829a742b 100644 --- a/libs/ardour/luaproc.cc +++ b/libs/ardour/luaproc.cc @@ -174,6 +174,9 @@ LuaProc::init () boost::weak_ptr<Route> LuaProc::route () const { + if (!_owner) { + return boost::weak_ptr<Route>(); + } return static_cast<Route*>(_owner)->weakroute (); } |