Don't crash if the click is missing

This commit is contained in:
Todd Naugle 2022-08-05 00:41:37 +02:00 committed by Robin Gareus
parent 02b0ecdacb
commit d5113e6e91
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 6 additions and 2 deletions

View file

@ -459,7 +459,9 @@ PortGroupList::gather (ARDOUR::Session* session, ARDOUR::DataType type, bool inp
if (!inputs) {
program->add_bundle (session->the_auditioner()->output()->bundle());
program->add_bundle (session->click_io()->bundle());
if (session->click_io()) {
program->add_bundle (session->click_io()->bundle());
}
boost::shared_ptr<Bundle> ltc (new Bundle (_("LTC Out"), inputs));
ltc->add_channel (_("LTC Out"), DataType::AUDIO, session->engine().make_port_name_non_relative (session->ltc_output_port()->name()));