From 83b4143391d0ef55c95f733b5f364d5f1778d68a Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 12 Feb 2015 22:10:52 +0100 Subject: Don't crash if no input port has been connected. --- lv2/input_lv2.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lv2') 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; -- cgit v1.2.3