Mixer/Plugin_Module: Avoid unnecessary plugin reactivation.

This commit is contained in:
Jonathan Moore Liles 2013-08-22 18:04:24 -07:00
parent 8fe598eff4
commit 839ed187d6
1 changed files with 14 additions and 12 deletions

View File

@ -165,7 +165,7 @@ Plugin_Module::can_support_inputs ( int n )
bool
Plugin_Module::configure_inputs( int n )
{
int inst = _idata->handle.size();
unsigned int inst = _idata->handle.size();
if ( ninputs() != n )
{
@ -214,7 +214,8 @@ Plugin_Module::configure_inputs( int n )
if ( loaded() )
{
bool b = bypass();
if ( inst != _idata->handle.size() )
{
if ( !b )
deactivate();
@ -226,6 +227,7 @@ Plugin_Module::configure_inputs( int n )
if ( !b )
activate();
}
}
return true;
}