mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-12 17:46:34 +01:00
Fix crash when instrument plugins fail to instantiate.
This commit is contained in:
parent
0506f85e9d
commit
96cbcf0ee4
1 changed files with 4 additions and 0 deletions
|
|
@ -719,6 +719,10 @@ PluginInsert::can_support_io_configuration (const ChanCount& in, ChanCount& out)
|
||||||
PluginInsert::Match
|
PluginInsert::Match
|
||||||
PluginInsert::private_can_support_io_configuration (ChanCount const & inx, ChanCount& out)
|
PluginInsert::private_can_support_io_configuration (ChanCount const & inx, ChanCount& out)
|
||||||
{
|
{
|
||||||
|
if (_plugins.empty()) {
|
||||||
|
return Match();
|
||||||
|
}
|
||||||
|
|
||||||
PluginInfoPtr info = _plugins.front()->get_info();
|
PluginInfoPtr info = _plugins.front()->get_info();
|
||||||
ChanCount in; in += inx;
|
ChanCount in; in += inx;
|
||||||
midi_bypass.reset();
|
midi_bypass.reset();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue