From 86ee2b4f9b2a1a160d923f5f3f6a5166d9541604 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 21 Sep 2007 22:33:21 +0000 Subject: Tolerate plugins with run method set to NULL. git-svn-id: http://svn.drobilla.net/lad/slv2@749 a436a847-0d15-0410-975c-d299462d15a1 --- slv2/plugininstance.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'slv2/plugininstance.h') diff --git a/slv2/plugininstance.h b/slv2/plugininstance.h index 81ad1b1..ecaa509 100644 --- a/slv2/plugininstance.h +++ b/slv2/plugininstance.h @@ -147,10 +147,10 @@ slv2_instance_run(SLV2Instance instance, { assert(instance); assert(instance->lv2_descriptor); - assert(instance->lv2_handle), - assert(instance->lv2_descriptor->run); - - instance->lv2_descriptor->run(instance->lv2_handle, sample_count); + assert(instance->lv2_handle); + + if (instance->lv2_descriptor->run) + instance->lv2_descriptor->run(instance->lv2_handle, sample_count); } -- cgit v1.2.1