diff options
author | Christopher Arndt <chris@chrisarndt.de> | 2019-11-10 00:47:57 +0100 |
---|---|---|
committer | Christopher Arndt <chris@chrisarndt.de> | 2019-11-10 00:47:57 +0100 |
commit | d6ed5c20807c906868cf9977ddaf82b696cc4225 (patch) | |
tree | feadcaf498a8a2f634e7fe2ef3ebf243a10fad64 /libs/plugins | |
parent | 70442ae7e36d4b028992639deb537cc4eb267f85 (diff) |
Fix segfault: don't try to use midnam:update extension if host doesn't support it
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
Diffstat (limited to 'libs/plugins')
-rw-r--r-- | libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc b/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc index f180bee8f0..a3c23dde80 100644 --- a/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc +++ b/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc @@ -581,7 +581,8 @@ run (LV2_Handle instance, uint32_t n_samples) inform_ui (self); #ifdef LV2_EXTENDED - self->midnam->update (self->midnam->handle); + if (self->midnam) + self->midnam->update (self->midnam->handle); #endif } |