Use MTC instead of MIDI Timecode as the string for the external sync button. Fixes...
[ardour.git] / gtk2_ardour / io_selector.cc
index f3bc947355f80e5e5f71b705ee4c6a9063ac4a93..3217e2e81f1da3bb0902cacdfe6cfad8e4a35d03 100644 (file)
@@ -136,8 +136,6 @@ IOSelector::set_state (ARDOUR::BundleChannel c[2], bool s)
        ARDOUR::Bundle::PortList const & our_ports = c[_ours].bundle->channel_ports (c[_ours].channel);
        ARDOUR::Bundle::PortList const & other_ports = c[_other].bundle->channel_ports (c[_other].channel);
 
-        Glib::Mutex::Lock lm (AudioEngine::instance()->process_lock());
-
        for (ARDOUR::Bundle::PortList::const_iterator i = our_ports.begin(); i != our_ports.end(); ++i) {
                for (ARDOUR::Bundle::PortList::const_iterator j = other_ports.begin(); j != other_ports.end(); ++j) {
 
@@ -145,12 +143,12 @@ IOSelector::set_state (ARDOUR::BundleChannel c[2], bool s)
                        if (!f) {
                                return;
                        }
-
-                       if (s) {
-                               _io->connect (f, *j, 0);
-                       } else {
-                               _io->disconnect (f, *j, 0);
-                       }
+                        
+                        if (s) {
+                                _io->connect (f, *j, 0);
+                        } else {
+                                _io->disconnect (f, *j, 0);
+                        }
                }
        }
 }