From c0fe67427d3e0490eb7e8efe85a24811404e133c Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 16 Apr 2021 22:14:25 +0200 Subject: [PATCH] Fix crash if no audition synth is unset This was possible if a user explicitly selects "-none-" from the instrument dropdown. --- libs/ardour/auditioner.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libs/ardour/auditioner.cc b/libs/ardour/auditioner.cc index 2372d29c12..163d9d973e 100644 --- a/libs/ardour/auditioner.cc +++ b/libs/ardour/auditioner.cc @@ -130,6 +130,14 @@ void Auditioner::load_synth (bool need_lock) { unload_synth(need_lock); + + if (!audition_synth_info) { + lookup_fallback_synth (); + } + + if (!audition_synth_info) { + return; + } boost::shared_ptr p = audition_synth_info->load (_session); if (p) {