Mixer: Fix OSC path naming for multiple instances of the same LADSPA plugin.

pull/3/head
Jonathan Moore Liles 2012-06-04 22:55:26 -07:00
parent 7217266f6b
commit e5e6925c2c
1 changed files with 2 additions and 7 deletions

View File

@ -386,14 +386,9 @@ Chain::get_module_instance_number ( Module *m )
{
int n = 0;
for ( int i = 0; i < modules(); ++i )
{
if ( module(i) == m )
break;
if ( ! strcmp( module(i)->name(), m->name() ) )
for ( int i = 0; i < modules() && module(i) != m; ++i )
if ( ! strcmp( module(i)->label(), m->label() ) )
n++;
}
return n;
}