summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--slv2/plugininstance.h8
1 files changed, 4 insertions, 4 deletions
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);
}