OSC: Rename OSC method when signal is renamed.

This commit is contained in:
Jonathan Moore Liles 2013-06-03 21:57:11 -07:00
parent 02bb329551
commit 3e932c9930
1 changed files with 6 additions and 0 deletions

View File

@ -92,6 +92,12 @@ namespace OSC
{ {
DMESSAGE( "Renaming signal %s to %s", this->path(), path ); DMESSAGE( "Renaming signal %s to %s", this->path(), path );
if ( _direction == Signal::Input )
{
lo_server_del_method( _endpoint->_server, _path, NULL );
lo_server_add_method( _endpoint->_server, path, NULL, _endpoint->osc_sig_handler, this );
}
free( _path ); free( _path );
_path = strdup( path ); _path = strdup( path );