summaryrefslogtreecommitdiffstats
path: root/src/engine/events
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/events')
-rw-r--r--src/engine/events/RequestMetadata.cpp2
-rw-r--r--src/engine/events/SetPortValue.cpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/engine/events/RequestMetadata.cpp b/src/engine/events/RequestMetadata.cpp
index 5efc7072..850ecc3d 100644
--- a/src/engine/events/RequestMetadata.cpp
+++ b/src/engine/events/RequestMetadata.cpp
@@ -101,7 +101,7 @@ RequestMetadata::execute(ProcessContext& context)
} else {
IntrusivePtr<ObjectBuffer> obuf = PtrCast<ObjectBuffer>(port->buffer(0));
if (obuf) {
- LV2Object::to_atom(*_engine.world()->uris().get(), obuf->object(), _value);
+ LV2Object::to_atom(*_engine.world()->uris().get(), obuf->atom(), _value);
}
}
} else {
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;