Mixer/Plugin_Module: Avoid unnecessary plugin reactivation.
This commit is contained in:
parent
8fe598eff4
commit
839ed187d6
|
@ -165,7 +165,7 @@ Plugin_Module::can_support_inputs ( int n )
|
||||||
bool
|
bool
|
||||||
Plugin_Module::configure_inputs( int n )
|
Plugin_Module::configure_inputs( int n )
|
||||||
{
|
{
|
||||||
int inst = _idata->handle.size();
|
unsigned int inst = _idata->handle.size();
|
||||||
|
|
||||||
if ( ninputs() != n )
|
if ( ninputs() != n )
|
||||||
{
|
{
|
||||||
|
@ -214,17 +214,19 @@ Plugin_Module::configure_inputs( int n )
|
||||||
if ( loaded() )
|
if ( loaded() )
|
||||||
{
|
{
|
||||||
bool b = bypass();
|
bool b = bypass();
|
||||||
|
if ( inst != _idata->handle.size() )
|
||||||
if ( !b )
|
{
|
||||||
deactivate();
|
if ( !b )
|
||||||
|
deactivate();
|
||||||
if ( plugin_instances( inst ) )
|
|
||||||
instances( inst );
|
if ( plugin_instances( inst ) )
|
||||||
else
|
instances( inst );
|
||||||
return false;
|
else
|
||||||
|
return false;
|
||||||
if ( !b )
|
|
||||||
activate();
|
if ( !b )
|
||||||
|
activate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue