aboutsummaryrefslogtreecommitdiff
path: root/midi_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 /midi_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 'midi_inspector.c')
-rw-r--r--midi_inspector.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/midi_inspector.c b/midi_inspector.c
index 600b8dd..ae60b5e 100644
--- a/midi_inspector.c
+++ b/midi_inspector.c
@@ -151,9 +151,7 @@ run(LV2_Handle instance, uint32_t nsamples)
if(ref)
ref = lv2_atom_forge_frame_time(forge, ev->time.frames);
if(ref)
- ref = lv2_atom_forge_raw(forge, &ev->body, sizeof(LV2_Atom) + ev->body.size);
- if(ref)
- lv2_atom_forge_pad(forge, ev->body.size);
+ ref = lv2_atom_forge_write(forge, &ev->body, sizeof(LV2_Atom) + ev->body.size);
}
}