13
0

Fix crash when instrument plugins fail to instantiate.

This commit is contained in:
David Robillard 2014-01-17 19:34:51 -05:00
parent 0506f85e9d
commit 96cbcf0ee4

View File

@ -719,6 +719,10 @@ PluginInsert::can_support_io_configuration (const ChanCount& in, ChanCount& out)
PluginInsert::Match
PluginInsert::private_can_support_io_configuration (ChanCount const & inx, ChanCount& out)
{
if (_plugins.empty()) {
return Match();
}
PluginInfoPtr info = _plugins.front()->get_info();
ChanCount in; in += inx;
midi_bypass.reset();