aboutsummaryrefslogtreecommitdiff
path: root/atom_inspector.c
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-04-30 19:22:24 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-04-30 19:22:24 +0200
commit60accc3f934dd9879111af908ff1a564eb4bd8f1 (patch)
tree7813d938fa4ff21314636575002051a9954dc619 /atom_inspector.c
parent65ce0ebe2daf9196d56a4fbb08bf9dd70f5011d6 (diff)
downloadsherlock.lv2-60accc3f934dd9879111af908ff1a564eb4bd8f1.tar.xz
clear atom info when clearing events.
* clear atom info when clearing events. * and other atom_forge_* cosmetics.
Diffstat (limited to 'atom_inspector.c')
-rw-r--r--atom_inspector.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/atom_inspector.c b/atom_inspector.c
index 227e847..2d733b4 100644
--- a/atom_inspector.c
+++ b/atom_inspector.c
@@ -116,9 +116,7 @@ run(LV2_Handle instance, uint32_t nsamples)
capacity = handle->control_out->atom.size;
lv2_atom_forge_set_buffer(forge, (uint8_t *)handle->control_out, capacity);
ref = lv2_atom_forge_raw(forge, handle->control_in, size);
- if(ref)
- lv2_atom_forge_pop(forge, &frame);
- else
+ if(!ref)
lv2_atom_sequence_clear(handle->control_out);
// forge whole sequence as single event
@@ -140,9 +138,7 @@ run(LV2_Handle instance, uint32_t nsamples)
if(ref)
ref = lv2_atom_forge_int(forge, nsamples);
if(ref)
- ref = lv2_atom_forge_raw(forge, handle->control_in, size);
- if(ref)
- lv2_atom_forge_pad(forge, size);
+ ref = lv2_atom_forge_write(forge, handle->control_in, size);
if(ref)
lv2_atom_forge_pop(forge, &tup_frame);