JackPort::connect() fixup from torben
authorPaul Davis <paul@linuxaudiosystems.com>
Sun, 28 Sep 2008 23:13:16 +0000 (23:13 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Sun, 28 Sep 2008 23:13:16 +0000 (23:13 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@3825 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/ardour/jack_port.h

index 3fa0008e17ca664d9dee03c5e793c3628d5ece58..e19af25fd105d648ff36adeb0f762487c7b23346 100644 (file)
@@ -51,6 +51,9 @@ class JackPort : public virtual Port, public PortConnectableByName {
        int reconnect ();
 
        int connect (Port& other) {
+               if( _flags & IsOutput ) {
+                   return 0;
+               }
                return connect (other.name());
        }