summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-11-30 19:41:14 -0500
committerDavid Robillard <d@drobilla.net>2015-11-30 19:41:14 -0500
commit931be60fedc49fc6fde39a8342928ff6c7e60e07 (patch)
tree41214d69a34f054703bb9497c7883321cfcf42d4 /src/server
parente19f59e99a63b26d08e7d5506548222675521d40 (diff)
downloadingen-931be60fedc49fc6fde39a8342928ff6c7e60e07.tar.gz
ingen-931be60fedc49fc6fde39a8342928ff6c7e60e07.tar.bz2
ingen-931be60fedc49fc6fde39a8342928ff6c7e60e07.zip
Use jack_port_rename() if available
Closes #1075.
Diffstat (limited to 'src/server')
-rw-r--r--src/server/JackDriver.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/JackDriver.cpp b/src/server/JackDriver.cpp
index 6b0d2a05..531fb93e 100644
--- a/src/server/JackDriver.cpp
+++ b/src/server/JackDriver.cpp
@@ -268,8 +268,13 @@ JackDriver::rename_port(const Raul::Path& old_path,
{
EnginePort* eport = get_port(old_path);
if (eport) {
+#ifdef HAVE_JACK_PORT_RENAME
+ jack_port_rename(
+ _client, (jack_port_t*)eport->handle(), new_path.substr(1).c_str());
+#else
jack_port_set_name((jack_port_t*)eport->handle(),
new_path.substr(1).c_str());
+#endif
}
}