diff options
Diffstat (limited to 'src/engine/events/SetPortValue.cpp')
-rw-r--r-- | src/engine/events/SetPortValue.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/events/SetPortValue.cpp b/src/engine/events/SetPortValue.cpp index 1a41938d..6488fd6c 100644 --- a/src/engine/events/SetPortValue.cpp +++ b/src/engine/events/SetPortValue.cpp @@ -175,10 +175,10 @@ SetPortValue::apply(Context& context) ObjectBuffer* const obuf = dynamic_cast<ObjectBuffer*>(buf); if (obuf) { - obuf->object()->size = obuf->size() - sizeof(LV2_Object); - if (LV2Object::from_atom(uris, _value, obuf->object())) { - debug << "Converted atom " << _value << " :: " << obuf->object()->type - << " * " << obuf->object()->size << " @ " << obuf->object() << endl; + obuf->atom()->size = obuf->size() - sizeof(LV2_Atom); + if (LV2Object::from_atom(uris, _value, obuf->atom())) { + debug << "Converted atom " << _value << " :: " << obuf->atom()->type + << " * " << obuf->atom()->size << " @ " << obuf->atom() << endl; return; } else { warn << "Failed to convert atom to LV2 object" << endl; |