diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2009-03-21 03:04:32 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2009-03-21 03:04:32 +0000 |
commit | 8a089d09426b8697220664881103c8370183241f (patch) | |
tree | ad658d7e0b44f2ce954325a8640eef2fe7355c2f | |
parent | bd841b893723a0e4ef138918e39adc6245a15531 (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~.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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"); |