aboutsummaryrefslogtreecommitdiffstats
path: root/lv2/lv2plug.in/ns/ext/event/event-helpers.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-06 03:33:37 +0000
committerDavid Robillard <d@drobilla.net>2012-04-06 03:33:37 +0000
commitfaa04e26eb42fde8f853d072848f89c927f2a363 (patch)
tree09a1b2883abdbd2098de5bf685551f4bc6c99642 /lv2/lv2plug.in/ns/ext/event/event-helpers.h
parent6035204c2fa3aa5711dbcdda7735db8c33f55542 (diff)
downloadlv2-faa04e26eb42fde8f853d072848f89c927f2a363.tar.xz
Fix bug in lv2_event_reserve().
Diffstat (limited to 'lv2/lv2plug.in/ns/ext/event/event-helpers.h')
-rw-r--r--lv2/lv2plug.in/ns/ext/event/event-helpers.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/lv2/lv2plug.in/ns/ext/event/event-helpers.h b/lv2/lv2plug.in/ns/ext/event/event-helpers.h
index 9a8fee8..46d634d 100644
--- a/lv2/lv2plug.in/ns/ext/event/event-helpers.h
+++ b/lv2/lv2plug.in/ns/ext/event/event-helpers.h
@@ -191,12 +191,11 @@ lv2_event_write(LV2_Event_Iterator* iter,
is not enough room in the buffer. */
static inline uint8_t*
lv2_event_reserve(LV2_Event_Iterator* iter,
- uint32_t frames,
- uint32_t subframes,
- uint16_t type,
- uint16_t size)
+ uint32_t frames,
+ uint32_t subframes,
+ uint16_t type,
+ uint16_t size)
{
- size = lv2_event_pad_size(size);
if (iter->buf->capacity - iter->buf->size < sizeof(LV2_Event) + size)
return NULL;