summaryrefslogtreecommitdiffstats
path: root/src/server/JackDriver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/JackDriver.cpp')
-rw-r--r--src/server/JackDriver.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/server/JackDriver.cpp b/src/server/JackDriver.cpp
index e24bc13a..372feaa6 100644
--- a/src/server/JackDriver.cpp
+++ b/src/server/JackDriver.cpp
@@ -327,20 +327,15 @@ JackDriver::add_port(ProcessContext& context, EnginePort* port)
* It is the callers responsibility to delete the returned port.
*/
Raul::Deletable*
-JackDriver::remove_port(ProcessContext& context,
- const Raul::Path& path,
- EnginePort** port)
+JackDriver::remove_port(ProcessContext& context,
+ EnginePort* port)
{
for (Raul::List<JackPort*>::iterator i = _ports.begin(); i != _ports.end(); ++i) {
- if ((*i)->patch_port()->path() == path) {
- Raul::List<JackPort*>::Node* node = _ports.erase(i);
- if (port)
- *port = node->elem();
- return node;
+ if (*i == port) {
+ return _ports.erase(i);
}
}
- LOG(Raul::warn)(Raul::fmt("Unable to find port %1%\n") % path.c_str());
return NULL;
}