mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-29 00:13:10 +01:00
Fix crash if no audition synth is unset
This was possible if a user explicitly selects "-none-" from the instrument dropdown.
This commit is contained in:
parent
b928c62e49
commit
c0fe67427d
1 changed files with 8 additions and 0 deletions
|
|
@ -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<Plugin> p = audition_synth_info->load (_session);
|
||||
if (p) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue