Opened 11 years ago

Closed 9 years ago

#517 closed Feature Request (fixed)

Allow null ports for event-helpers.h

Reported by: Gabriel M. Beddingfield Owned by: David Robillard
Priority: minor Component: LV2
Keywords: lv2, event-helpers.h, null, pointer, iterator Cc: gabrbedd@…


I was working on some crashes for autotalent-lv2, and found that the attached patch was helpful in making Event ports optional. If the host writes a null pointer for the port, we pretty much create a "null iterator" that can be used without crashing. It also becomes minimally invasive in the plugin application since it just looks like no Events came in.

Attachments (1)

null-event-port.patch (636 bytes) - added by Gabriel M. Beddingfield 11 years ago.

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by Gabriel M. Beddingfield

Attachment: null-event-port.patch added

comment:1 Changed 9 years ago by David Robillard

Resolution: fixed
Status: newclosed

Applied in lv2 r743, thanks.

Note: See TracTickets for help on using tickets.