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 /src | |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/instance.c | 12 |
1 files changed, 7 insertions, 5 deletions
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 |