summaryrefslogtreecommitdiff
path: root/lv2/input_lv2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lv2/input_lv2.cc')
-rw-r--r--lv2/input_lv2.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/lv2/input_lv2.cc b/lv2/input_lv2.cc
index 7c3c6ec..e70d293 100644
--- a/lv2/input_lv2.cc
+++ b/lv2/input_lv2.cc
@@ -66,6 +66,11 @@ void InputLV2::pre()
event_t *InputLV2::run(size_t pos, size_t len, size_t *nevents)
{
+ if(eventPort == NULL) {
+ *nevents = 0;
+ return NULL;
+ }
+
event_t *list;
size_t listsize;