Re-implement URIMap to tolerate broken plugins that use the wrong context to
authorDavid Robillard <d@drobilla.net>
Sun, 27 May 2012 23:05:45 +0000 (23:05 +0000)
committerDavid Robillard <d@drobilla.net>
Sun, 27 May 2012 23:05:45 +0000 (23:05 +0000)
commit3696f98e6f1ac44f8ebfe975405cf82f6d0f8a72
treef9730df592b31d3660aecf7639643921f6c315a1
parent0b210042525b216acbbef2d10be99ffe5600c7c1
Re-implement URIMap to tolerate broken plugins that use the wrong context to
map MIDI event types (fix #4889).

All uri-map contexts are now just ignored, and equivalent to urid (which is
equivalent to uri-map with context NULL).  We now just hope that no event types
are mapped after UINT16_MAX URIs have been mapped, and die horribly otherwise.
This is exceedingly unlikely to happen any time in the next several years, if
ever.

git-svn-id: svn://localhost/ardour2/branches/3.0@12462 d708f5d6-7413-0410-9779-e7cbd77b26cf
libs/ardour/ardour/lv2_plugin.h
libs/ardour/ardour/uri_map.h
libs/ardour/buffer_set.cc
libs/ardour/lv2_plugin.cc
libs/ardour/uri_map.cc