aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-03-21 03:04:32 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-03-21 03:04:32 +0000
commit8a089d09426b8697220664881103c8370183241f (patch)
treead658d7e0b44f2ce954325a8640eef2fe7355c2f
parentbd841b893723a0e4ef138918e39adc6245a15531 (diff)
checking in patch #1944415 to fix crash when the plugin doesn't load
svn path=/trunk/externals/plugin~/; revision=10883
-rw-r--r--plugin~.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin~.c b/plugin~.c
index eca5d0f..3944d6e 100644
--- a/plugin~.c
+++ b/plugin~.c
@@ -730,6 +730,11 @@ void plugin_tilde_ladspa_connect_audio (Pd_Plugin_Tilde* x,
unsigned input_count = 0;
unsigned output_count = 0;
+ if (x->plugin_library_filename == NULL) {
+ post("plugin~: plugin not found");
+ return;
+ }
+
/* Allocate out-of-place memory if needed */
if (plugin_tilde_ladspa_alloc_outofplace_memory (x, num_samples)) {
post("plugin~: out of memory");