diff options
-rw-r--r-- | NEWS | 6 | ||||
-rw-r--r-- | src/instance.c | 12 |
2 files changed, 13 insertions, 5 deletions
@@ -1,3 +1,9 @@ +suil (9999) unstable; + + * Gracefully handle UIs with no port_event method + + -- David Robillard <d@drobilla.net> Tue, 17 Jul 2012 23:16:19 -0400 + suil (0.6.4) stable; * Correctly handle resizing for Gtk2 in Qt4 diff --git a/src/instance.c b/src/instance.c index 2f68692..ca15ffe 100644 --- a/src/instance.c +++ b/src/instance.c @@ -301,11 +301,13 @@ suil_instance_port_event(SuilInstance* instance, uint32_t format, const void* buffer) { - instance->descriptor->port_event(instance->handle, - port_index, - buffer_size, - format, - buffer); + if (instance->descriptor->port_event) { + instance->descriptor->port_event(instance->handle, + port_index, + buffer_size, + format, + buffer); + } } SUIL_API |