diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 5284ec6fa6..cb7a2e68dd 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -3573,7 +3573,7 @@ Route::create_direct_outs () _direct_outs->activate (); try { - _direct_outs->output()->ensure_io (ChanCount (DataType::AUDIO, input()->ports().num_ports(DataType::AUDIO)), false, this); + _direct_outs->output()->ensure_io (ChanCount (DataType::AUDIO, input()->ports()->num_ports(DataType::AUDIO)), false, this); } catch (AudioEngine::PortRegistrationFailure& err) { error << string_compose (_("Cannot set up direct outs: %1"), err.what()) << endmsg; _direct_outs.reset (); diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 9581894e39..7eeb17288d 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -7960,12 +7960,12 @@ Session::livetrax_auto_connect () n = t->input()->n_ports().n_audio(); for (uint32_t c = 0; c < n && ip != physinputs.end(); ++c) { - t->input()->connect (t->input()->ports().port (DataType::AUDIO, c), *ip, this); + t->input()->connect (t->input()->ports()->port (DataType::AUDIO, c), *ip, this); ++ip; } n = t->direct_outs()->output()->n_ports().n_audio(); for (uint32_t c = 0; c < n && op != physoutputs.end(); ++c) { - t->direct_outs()->output()->ports().port (DataType::AUDIO, c)->connect (*op); + t->direct_outs()->output()->ports()->port (DataType::AUDIO, c)->connect (*op); ++op; } }