13
0

WebSockets: hotfix crash when a session has VCAs

This eventually needs a better solution, special casing VCAs
on the top-level.
This commit is contained in:
Robin Gareus 2020-04-19 15:44:39 +02:00
parent 674554d978
commit c32fef2660
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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) {