summaryrefslogtreecommitdiff
path: root/libs/ardour/lv2_evbuf.c
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-02-01 23:06:24 +0100
committerRobin Gareus <robin@gareus.org>2014-02-01 23:07:23 +0100
commit12576a9f296d2f2fe6e7e57f9d7a1922aa38a21d (patch)
treeee0fa35321d59e9462dd6fed465b9b51e49acceb /libs/ardour/lv2_evbuf.c
parentce2feeac56f2c24b9d72824c23df50f124f17677 (diff)
forward port lv2_evbuf update (from jalv)
Diffstat (limited to 'libs/ardour/lv2_evbuf.c')
-rw-r--r--libs/ardour/lv2_evbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/lv2_evbuf.c b/libs/ardour/lv2_evbuf.c
index 8942d19a9b..f0e62d9b65 100644
--- a/libs/ardour/lv2_evbuf.c
+++ b/libs/ardour/lv2_evbuf.c
@@ -203,7 +203,7 @@ lv2_evbuf_get(LV2_Evbuf_Iterator iter,
switch (iter.evbuf->type) {
case LV2_EVBUF_EVENT:
ebuf = &iter.evbuf->buf.event;
- ev = (LV2_Event*)ebuf->data + iter.offset;
+ ev = (LV2_Event*)((char*)ebuf->data + iter.offset);
*frames = ev->frames;
*subframes = ev->subframes;
*type = ev->type;