summaryrefslogtreecommitdiffstats
path: root/src/URIMap.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-14 04:23:23 +0000
committerDavid Robillard <d@drobilla.net>2012-08-14 04:23:23 +0000
commit80fee5c311fdbdeda573ec81f59158a5fc87d0a1 (patch)
tree8e7e5a6c9bda32bbe0ae8e8c9f6ab23e44c7c181 /src/URIMap.cpp
parent058eaf65642268047a984a5c80d54a1f62a85130 (diff)
downloadingen-80fee5c311fdbdeda573ec81f59158a5fc87d0a1.tar.gz
ingen-80fee5c311fdbdeda573ec81f59158a5fc87d0a1.tar.bz2
ingen-80fee5c311fdbdeda573ec81f59158a5fc87d0a1.zip
Update for latest Raul.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4687 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/URIMap.cpp')
-rw-r--r--src/URIMap.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/URIMap.cpp b/src/URIMap.cpp
index 55a8d6a8..3d55046f 100644
--- a/src/URIMap.cpp
+++ b/src/URIMap.cpp
@@ -18,6 +18,7 @@
#include <glib.h>
+#include "raul/log.hpp"
#include "ingen/URIMap.hpp"
using namespace std;
@@ -52,10 +53,14 @@ URIMap::URIDMapFeature::default_map(LV2_URID_Map_Handle handle,
LV2_URID
URIMap::URIDMapFeature::map(const char* uri)
{
+ if (!Raul::URI::is_valid(uri)) {
+ Raul::warn(Raul::fmt("Attempt to map invalid URI <%1%>\n") % uri);
+ return 0;
+ }
return urid_map.map(urid_map.handle, uri);
}
-URIMap::URIDUnmapFeature::URIDUnmapFeature(URIMap* map,
+URIMap::URIDUnmapFeature::URIDUnmapFeature(URIMap* map,
LV2_URID_Unmap* impl)
: Feature(LV2_URID__unmap, &urid_unmap)
{