diff options
Diffstat (limited to 'lv2/input_lv2.cc')
-rw-r--r-- | lv2/input_lv2.cc | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/lv2/input_lv2.cc b/lv2/input_lv2.cc index d995e75..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; @@ -99,11 +104,6 @@ event_t *InputLV2::run(size_t pos, size_t len, size_t *nevents) list[listsize].offset = ev->time.frames; listsize++; } - /* - start_frame = ev->frames; - plugin->frame = 0; - plugin->play = true; - */ } ev = lv2_atom_sequence_next(ev); } @@ -115,20 +115,3 @@ event_t *InputLV2::run(size_t pos, size_t len, size_t *nevents) void InputLV2::post() { } - -#ifdef TEST_INPUT_LV2 -//Additional dependency files -//deps: -//Required cflags (autoconf vars may be used) -//cflags: -//Required link options (autoconf vars may be used) -//libs: -#include "test.h" - -TEST_BEGIN; - -// TODO: Put some testcode here (see test.h for usable macros). - -TEST_END; - -#endif/*TEST_INPUT_LV2*/ |