diff options
author | David Robillard <d@drobilla.net> | 2012-06-01 04:13:44 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-06-01 04:13:44 +0000 |
commit | 9680cb0fd0fae53cfa93b8524cd25b551a07d25d (patch) | |
tree | 9436362d8cdc9c50d8767ebd49ec32c888a6cc47 /src/shared | |
parent | 31c80e3d4d222ddd8dfaceff9b84308e99a05df4 (diff) | |
download | ingen-9680cb0fd0fae53cfa93b8524cd25b551a07d25d.tar.gz ingen-9680cb0fd0fae53cfa93b8524cd25b551a07d25d.tar.bz2 ingen-9680cb0fd0fae53cfa93b8524cd25b551a07d25d.zip |
Functioning MIDI input and internals when running as an LV2.
Ingen can now be used to build working LV2 synthesizers.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4491 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/AtomReader.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/shared/AtomReader.cpp b/src/shared/AtomReader.cpp index c6ff7e18..cd871079 100644 --- a/src/shared/AtomReader.cpp +++ b/src/shared/AtomReader.cpp @@ -39,7 +39,13 @@ AtomReader::get_atom(const LV2_Atom* in, Raul::Atom& out) if (in) { if (in->type == _uris.atom_URID) { const LV2_Atom_URID* urid = (const LV2_Atom_URID*)in; - out = _forge.alloc_uri(_map.unmap_uri(urid->body)); + const char* uri = _map.unmap_uri(urid->body); + if (uri) { + out = _forge.alloc_uri(_map.unmap_uri(urid->body)); + } else { + Raul::error(Raul::fmt("Unable to unmap URID %1%\n") + % urid->body); + } } else { out = _forge.alloc(in->size, in->type, LV2_ATOM_BODY(in)); } |