summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugin/drumgizmo_plugin.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugin/drumgizmo_plugin.cc b/plugin/drumgizmo_plugin.cc
index 29c2306..2a7e556 100644
--- a/plugin/drumgizmo_plugin.cc
+++ b/plugin/drumgizmo_plugin.cc
@@ -274,6 +274,12 @@ void DrumGizmoPlugin::Output::run(int ch, sample_t *samples, size_t nsamples)
return;
}
+ if((*plugin.output_samples)[ch] == nullptr)
+ {
+ // Port not connected.
+ return;
+ }
+
// We are not running directly on the internal buffer: do a copy.
if((*plugin.output_samples)[ch] != samples)
{