13
0

Fix segfault: don't try to use midnam:update extension if host doesn't support it

Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
This commit is contained in:
Christopher Arndt 2019-11-10 00:47:57 +01:00
parent 70442ae7e3
commit d6ed5c2080

View File

@ -581,6 +581,7 @@ run (LV2_Handle instance, uint32_t n_samples)
inform_ui (self); inform_ui (self);
#ifdef LV2_EXTENDED #ifdef LV2_EXTENDED
if (self->midnam)
self->midnam->update (self->midnam->handle); self->midnam->update (self->midnam->handle);
#endif #endif
} }