diff options
Diffstat (limited to 'libs/ardour/io.cc')
-rw-r--r-- | libs/ardour/io.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libs/ardour/io.cc b/libs/ardour/io.cc index ced4508d7a..17a1da231b 100644 --- a/libs/ardour/io.cc +++ b/libs/ardour/io.cc @@ -162,7 +162,7 @@ IO::disconnect (Port* our_port, string other_port, void* src) if (other_port.length() == 0 || our_port == 0) { return 0; } - + { Glib::Mutex::Lock lm (io_lock); @@ -1612,3 +1612,10 @@ IO::physically_connected () const return false; } + +bool +IO::has_port (Port* p) const +{ + Glib::Mutex::Lock lm (io_lock); + return _ports.contains (p); +} |