summaryrefslogtreecommitdiff
path: root/libs/plugins
diff options
context:
space:
mode:
authorChristopher Arndt <chris@chrisarndt.de>2019-11-10 00:47:57 +0100
committerChristopher Arndt <chris@chrisarndt.de>2019-11-10 00:47:57 +0100
commitd6ed5c20807c906868cf9977ddaf82b696cc4225 (patch)
treefeadcaf498a8a2f634e7fe2ef3ebf243a10fad64 /libs/plugins
parent70442ae7e36d4b028992639deb537cc4eb267f85 (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.cc3
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
}