merge (squash) with scenechange topic branch to provide MIDI-driven scene change...
[ardour.git] / libs / ardour / lv2_evbuf.c
index fba7fd521ddc42dd7aa78f63121045e804877895..2802ab8c816fd14e9274b1b2cc585a7b13da7e8f 100644 (file)
@@ -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;