From 866a90be1360627eba3a06340fba42b453d161e1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 5 Oct 2016 05:20:42 -0400 Subject: Fix time stamp of UI events delivered to plugin --- src/jalv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/jalv.c b/src/jalv.c index 157076f..508c0fe 100644 --- a/src/jalv.c +++ b/src/jalv.c @@ -579,7 +579,7 @@ jalv_apply_ui_events(Jalv* jalv, uint32_t nframes) } else if (ev.protocol == jalv->urids.atom_eventTransfer) { LV2_Evbuf_Iterator e = lv2_evbuf_end(port->evbuf); const LV2_Atom* const atom = (const LV2_Atom*)body; - lv2_evbuf_write(&e, nframes - 1, 0, atom->type, atom->size, + lv2_evbuf_write(&e, nframes, 0, atom->type, atom->size, (const uint8_t*)LV2_ATOM_BODY_CONST(atom)); } else { fprintf(stderr, "error: Unknown control change protocol %d\n", -- cgit v1.2.1