OSC: Rename OSC method when signal is renamed.
This commit is contained in:
parent
02bb329551
commit
3e932c9930
|
@ -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 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue