diff options
author | David Robillard <d@drobilla.net> | 2012-08-18 01:48:34 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-18 01:48:34 +0000 |
commit | 160b2baf7df8b960f22619c013b3197c0dc51c2b (patch) | |
tree | 55418f001987494b2a822584c995e84dc1b9338c /src/server/Buffer.cpp | |
parent | 318b37d8b556add13b3f156f31c9e72eca339a16 (diff) | |
download | ingen-160b2baf7df8b960f22619c013b3197c0dc51c2b.tar.gz ingen-160b2baf7df8b960f22619c013b3197c0dc51c2b.tar.bz2 ingen-160b2baf7df8b960f22619c013b3197c0dc51c2b.zip |
Fix running as an LV2 plugin.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4719 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/Buffer.cpp')
-rw-r--r-- | src/server/Buffer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/Buffer.cpp b/src/server/Buffer.cpp index 79ec3847..2c990c02 100644 --- a/src/server/Buffer.cpp +++ b/src/server/Buffer.cpp @@ -91,7 +91,11 @@ Buffer::clear() _atom->size = _capacity - sizeof(LV2_Atom); set_block(0, 0, nframes()); } else if (is_sequence()) { - _atom->size = sizeof(LV2_Atom_Sequence_Body); + LV2_Atom_Sequence* seq = (LV2_Atom_Sequence*)_atom; + _atom->type = _factory.uris().atom_Sequence; + _atom->size = sizeof(LV2_Atom_Sequence_Body); + seq->body.unit = 0; + seq->body.pad = 0; } } |