diff options
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 |