From 2b88ebdcb7a438a8419ab6a815742b115b2dce03 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 16 Dec 2017 17:44:13 +0100 Subject: Fix serialization of bundle start and end --- src/AtomReader.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/AtomReader.cpp b/src/AtomReader.cpp index 18b5877c..40be80e2 100644 --- a/src/AtomReader.cpp +++ b/src/AtomReader.cpp @@ -167,6 +167,10 @@ AtomReader::write(const LV2_Atom* msg, int32_t default_id) if (subject_uri) { _iface.get(*subject_uri); } + } else if (obj->body.otype == _uris.ingen_BundleStart) { + _iface.bundle_begin(); + } else if (obj->body.otype == _uris.ingen_BundleEnd) { + _iface.bundle_end(); } else if (obj->body.otype == _uris.patch_Delete) { const LV2_Atom_Object* body = NULL; lv2_atom_object_get(obj, (LV2_URID)_uris.patch_body, &body, 0); @@ -174,10 +178,6 @@ AtomReader::write(const LV2_Atom* msg, int32_t default_id) if (subject_uri && !body) { _iface.del(*subject_uri); return true; - } else if (obj->body.otype == _uris.ingen_BundleStart) { - _iface.bundle_begin(); - } else if (obj->body.otype == _uris.ingen_BundleEnd) { - _iface.bundle_end(); } else if (body && body->body.otype == _uris.ingen_Arc) { const LV2_Atom* tail = NULL; const LV2_Atom* head = NULL; -- cgit v1.2.1