diff options
author | Robin Gareus <robin@gareus.org> | 2020-04-19 15:44:39 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-19 15:44:39 +0200 |
commit | c32fef2660cccf822d39bae918670c655e9a7765 (patch) | |
tree | b27b40feeb1caa050ba0a4f01da1be0a2364c2f8 /libs/surfaces | |
parent | 674554d97885a855a9d644b955b9f464deeb4b1e (diff) |
WebSockets: hotfix crash when a session has VCAs
This eventually needs a better solution, special casing VCAs
on the top-level.
Diffstat (limited to 'libs/surfaces')
-rw-r--r-- | libs/surfaces/websockets/strips.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/surfaces/websockets/strips.cc b/libs/surfaces/websockets/strips.cc index e80d8af5d7..e9b81d2b55 100644 --- a/libs/surfaces/websockets/strips.cc +++ b/libs/surfaces/websockets/strips.cc @@ -201,6 +201,9 @@ ArdourStrips::strip_plugin_insert (uint32_t strip_n, uint32_t plugin_n) const { boost::shared_ptr<Stripable> strip = nth_strip (strip_n); boost::shared_ptr<Route> route = boost::dynamic_pointer_cast<Route> (strip); + if (!route) { + return boost::shared_ptr<PluginInsert> (); + } boost::shared_ptr<Processor> processor = route->nth_plugin (plugin_n); if (processor) { |