summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/ingen_lv2.cpp8
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;
}
}
}