diff options
author | David Robillard <d@drobilla.net> | 2012-07-18 03:17:29 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-07-18 03:17:29 +0000 |
commit | bd92279753521a57e3a3d52aff833dc5f9949088 (patch) | |
tree | fc348657440aad3795b5e63e331c003238fdd3f6 | |
parent | 642fef61b176a30d9b2c04ff290af70d54a9f5e9 (diff) | |
download | suil-bd92279753521a57e3a3d52aff833dc5f9949088.tar.gz suil-bd92279753521a57e3a3d52aff833dc5f9949088.tar.bz2 suil-bd92279753521a57e3a3d52aff833dc5f9949088.zip |
Gracefully handle UIs with no port_event method (fix #846).
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@4549 a436a847-0d15-0410-975c-d299462d15a1
-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 |