summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-16 17:44:13 +0100
committerDavid Robillard <d@drobilla.net>2017-12-16 17:51:21 +0100
commit2b88ebdcb7a438a8419ab6a815742b115b2dce03 (patch)
tree6fbccb3c85c275eb51e4f7231ab2d0682c571bcb
parent2db4b9d3eeff03fff8a75c7fe500fa56da143efc (diff)
downloadingen-2b88ebdcb7a438a8419ab6a815742b115b2dce03.tar.gz
ingen-2b88ebdcb7a438a8419ab6a815742b115b2dce03.tar.bz2
ingen-2b88ebdcb7a438a8419ab6a815742b115b2dce03.zip
Fix serialization of bundle start and end
-rw-r--r--src/AtomReader.cpp8
1 files 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;