Go back to one progress bar with several passes in export.
[ardour.git] / libs / ardour / internal_return.cc
index 568604272b8785b44bba30293b36fc426b14efda..3c75c7957da016265101a6755ddd1ffb1a8d6118 100644 (file)
@@ -57,14 +57,18 @@ InternalReturn::run (BufferSet& bufs, framepos_t /*start_frame*/, framepos_t /*e
 void
 InternalReturn::add_send (InternalSend* send)
 {
-       Glib::Mutex::Lock lm (_session.engine().process_lock());
+       /* caller must hold process lock */
+       assert (!AudioEngine::instance()->process_lock().trylock());
+
        _sends.push_back (send);
 }
 
 void
 InternalReturn::remove_send (InternalSend* send)
 {
-       Glib::Mutex::Lock lm (_session.engine().process_lock());
+       /* caller must hold process lock */
+       assert (!AudioEngine::instance()->process_lock().trylock());
+
        _sends.remove (send);
 }
 
@@ -89,3 +93,10 @@ InternalReturn::can_support_io_configuration (const ChanCount& in, ChanCount& ou
        out = in;
        return true;
 }
+
+bool
+InternalReturn::configure_io (ChanCount in, ChanCount out)
+{
+       IOProcessor::configure_io (in, out);
+       return true;
+}