From faa04e26eb42fde8f853d072848f89c927f2a363 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 6 Apr 2012 03:33:37 +0000 Subject: Fix bug in lv2_event_reserve(). --- lv2/lv2plug.in/ns/ext/event/event-helpers.h | 9 ++++----- lv2/lv2plug.in/ns/ext/event/event.ttl | 9 +++++++++ 2 files changed, 13 insertions(+), 5 deletions(-) (limited to 'lv2/lv2plug.in') 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; diff --git a/lv2/lv2plug.in/ns/ext/event/event.ttl b/lv2/lv2plug.in/ns/ext/event/event.ttl index e096503..d77d7cc 100644 --- a/lv2/lv2plug.in/ns/ext/event/event.ttl +++ b/lv2/lv2plug.in/ns/ext/event/event.ttl @@ -31,6 +31,15 @@ , <../../people/people.ttl> ; doap:release [ + doap:revision "1.5" ; + doap:created "2012-04-05" ; + dcs:blame ; + dcs:changeset [ + dcs:item [ + rdfs:label "Fix bug in lv2_event_reserve()." ; + ] ; + ] ; + ] , [ doap:revision "1.4" ; doap:created "2011-11-21" ; doap:file-release ; -- cgit v1.2.1