13
0

forward port lv2_evbuf update (from jalv)

This commit is contained in:
Robin Gareus 2014-02-01 23:06:24 +01:00
parent ce2feeac56
commit 12576a9f29

View File

@ -203,7 +203,7 @@ lv2_evbuf_get(LV2_Evbuf_Iterator iter,
switch (iter.evbuf->type) { switch (iter.evbuf->type) {
case LV2_EVBUF_EVENT: case LV2_EVBUF_EVENT:
ebuf = &iter.evbuf->buf.event; ebuf = &iter.evbuf->buf.event;
ev = (LV2_Event*)ebuf->data + iter.offset; ev = (LV2_Event*)((char*)ebuf->data + iter.offset);
*frames = ev->frames; *frames = ev->frames;
*subframes = ev->subframes; *subframes = ev->subframes;
*type = ev->type; *type = ev->type;