diff options
author | David Robillard <d@drobilla.net> | 2012-08-29 20:20:17 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-29 20:20:17 +0000 |
commit | 809f4a8793c9d1dbc6e7d5bde41411d1d4b8bec0 (patch) | |
tree | bf275aa47259e911b525aceb8354cf915a448298 /src/server | |
parent | 59e4fcba4ff314ca0e53a4b3b7751bf6eb46acf9 (diff) | |
download | ingen-809f4a8793c9d1dbc6e7d5bde41411d1d4b8bec0.tar.gz ingen-809f4a8793c9d1dbc6e7d5bde41411d1d4b8bec0.tar.bz2 ingen-809f4a8793c9d1dbc6e7d5bde41411d1d4b8bec0.zip |
Update for latest options extension.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4761 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/ingen_lv2.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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; } } } |