Mixer: Fix OSC pathname generation when running without NSM.

This commit is contained in:
Jonathan Moore Liles 2013-09-19 08:22:14 -07:00
parent 55b020f3a0
commit 5ab7d7c410
2 changed files with 3 additions and 4 deletions

View File

@ -325,8 +325,7 @@ Module_Parameter_Editor::make_controls ( void )
controls_by_port[i] = w; controls_by_port[i] = w;
w->tooltip( p->osc_path() ); w->copy_tooltip( p->osc_path() );
_callback_data.push_back( callback_data( this, i ) ); _callback_data.push_back( callback_data( this, i ) );

View File

@ -89,7 +89,7 @@ namespace OSC
Signal::rename ( const char *path ) Signal::rename ( const char *path )
{ {
char *new_path; char *new_path;
asprintf( &new_path, "%s%s", _endpoint->name(), path ); asprintf( &new_path, "%s%s", _endpoint->name() ? _endpoint->name() : "", path );
DMESSAGE( "Renaming signal %s to %s", this->path(), new_path ); DMESSAGE( "Renaming signal %s to %s", this->path(), new_path );
@ -962,7 +962,7 @@ namespace OSC
Endpoint::add_signal ( const char *path, Signal::Direction dir, float min, float max, float default_value, signal_handler handler, void *user_data ) Endpoint::add_signal ( const char *path, Signal::Direction dir, float min, float max, float default_value, signal_handler handler, void *user_data )
{ {
char *s; char *s;
asprintf( &s, "%s%s", name(), path ); asprintf( &s, "%s%s", name() ? name() : "", path );
Signal *o = new Signal( s, dir ); Signal *o = new Signal( s, dir );