summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-09-21 22:33:21 +0000
committerDavid Robillard <d@drobilla.net>2007-09-21 22:33:21 +0000
commit86ee2b4f9b2a1a160d923f5f3f6a5166d9541604 (patch)
treea8df85dcd4762c9056278be14dcc83f9fa3b9748
parentdf69be82f1cd26fb16d8c35c67ea3accdfb53bfe (diff)
downloadlilv-86ee2b4f9b2a1a160d923f5f3f6a5166d9541604.tar.gz
lilv-86ee2b4f9b2a1a160d923f5f3f6a5166d9541604.tar.bz2
lilv-86ee2b4f9b2a1a160d923f5f3f6a5166d9541604.zip
Tolerate plugins with run method set to NULL.
git-svn-id: http://svn.drobilla.net/lad/slv2@749 a436a847-0d15-0410-975c-d299462d15a1
-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);
}