aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/eg03-metro.lv2
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-12-24 16:49:44 +0000
committerDavid Robillard <d@drobilla.net>2013-12-24 16:49:44 +0000
commita6521f912b24bcf40c204303139eb2a104d5f85d (patch)
treefa101a658cc926b5387e9896667ca6658a5a62d1 /plugins/eg03-metro.lv2
parent391dd35265d03f3d4ebfcc2e2da28e2db6c75306 (diff)
downloadlv2-a6521f912b24bcf40c204303139eb2a104d5f85d.tar.xz
Fix several const violations.
Diffstat (limited to 'plugins/eg03-metro.lv2')
-rw-r--r--plugins/eg03-metro.lv2/metro.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/eg03-metro.lv2/metro.c b/plugins/eg03-metro.lv2/metro.c
index 51125af..c2e18af 100644
--- a/plugins/eg03-metro.lv2/metro.c
+++ b/plugins/eg03-metro.lv2/metro.c
@@ -301,7 +301,7 @@ run(LV2_Handle instance, uint32_t sample_count)
// Work forwards in time frame by frame, handling events as we go
const LV2_Atom_Sequence* in = self->ports.control;
uint32_t last_t = 0;
- for (LV2_Atom_Event* ev = lv2_atom_sequence_begin(&in->body);
+ for (const LV2_Atom_Event* ev = lv2_atom_sequence_begin(&in->body);
!lv2_atom_sequence_is_end(&in->body, in->atom.size, ev);
ev = lv2_atom_sequence_next(ev)) {
@@ -309,7 +309,7 @@ run(LV2_Handle instance, uint32_t sample_count)
play(self, last_t, ev->time.frames);
if (ev->body.type == uris->atom_Blank) {
- const LV2_Atom_Object* obj = (LV2_Atom_Object*)&ev->body;
+ const LV2_Atom_Object* obj = (const LV2_Atom_Object*)&ev->body;
if (obj->body.otype == uris->time_Position) {
// Received position information, update
update_position(self, obj);