From 8a089d09426b8697220664881103c8370183241f Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sat, 21 Mar 2009 03:04:32 +0000 Subject: checking in patch #1944415 to fix crash when the plugin doesn't load svn path=/trunk/externals/plugin~/; revision=10883 --- plugin~.c | 5 +++++ 1 file changed, 5 insertions(+) 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"); -- cgit v1.2.1