From 809f4a8793c9d1dbc6e7d5bde41411d1d4b8bec0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 29 Aug 2012 20:20:17 +0000 Subject: Update for latest options extension. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4761 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/ingen_lv2.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/server/ingen_lv2.cpp b/src/server/ingen_lv2.cpp index 64f459b7..6239bb01 100644 --- a/src/server/ingen_lv2.cpp +++ b/src/server/ingen_lv2.cpp @@ -527,10 +527,10 @@ ingen_instantiate(const LV2_Descriptor* descriptor, int32_t seq_size = 0; if (options) { for (const LV2_Options_Option* o = options; o->key; ++o) { - if (o->key == bufsz_max && o->value->type == atom_Int) { - block_length = ((const LV2_Atom_Int*)o->value)->body; - } else if (o->key == bufsz_seq && o->value->type == atom_Int) { - seq_size = ((const LV2_Atom_Int*)o->value)->body; + if (o->key == bufsz_max && o->type == atom_Int) { + block_length = *(const int32_t*)o->value; + } else if (o->key == bufsz_seq && o->type == atom_Int) { + seq_size = *(const int32_t*)o->value; } } } -- cgit v1.2.1