diff options
Diffstat (limited to 'src/server/events/CreatePort.cpp')
-rw-r--r-- | src/server/events/CreatePort.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/events/CreatePort.cpp b/src/server/events/CreatePort.cpp index c156c13a..df9ebb6e 100644 --- a/src/server/events/CreatePort.cpp +++ b/src/server/events/CreatePort.cpp @@ -88,6 +88,10 @@ CreatePort::pre_process() if (_port_type == PortType::UNKNOWN) { return Event::pre_process_done(UNKNOWN_TYPE, _path); } + + if (_path.is_root()) { + return Event::pre_process_done(BAD_URI, _path); + } if (_engine.engine_store()->find_object(_path)) { return Event::pre_process_done(_status, _path); @@ -122,7 +126,7 @@ CreatePort::pre_process() poly_i->second.get_bool()); if (!(_patch_port = _patch->create_port( - *_engine.buffer_factory(), _path.symbol(), + *_engine.buffer_factory(), Raul::Symbol(_path.symbol()), _port_type, _buf_type, buf_size, _is_output, polyphonic))) { return Event::pre_process_done(CREATION_FAILED, _path); } |