summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-21 00:12:46 +0000
committerDavid Robillard <d@drobilla.net>2011-05-21 00:12:46 +0000
commit2c6db7e54c8124a7dd49d04fa949c3351676aee1 (patch)
tree81c8027255ff45f259297896c80d1109e2fce46e /src/server
parentd700e9d8b26198d62807104d1517791dd992d149 (diff)
downloadingen-2c6db7e54c8124a7dd49d04fa949c3351676aee1.tar.gz
ingen-2c6db7e54c8124a7dd49d04fa949c3351676aee1.tar.bz2
ingen-2c6db7e54c8124a7dd49d04fa949c3351676aee1.zip
Fix patch loading.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3304 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server')
-rw-r--r--src/server/ingen_lv2.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/server/ingen_lv2.cpp b/src/server/ingen_lv2.cpp
index aa3c1f56..9ef1aede 100644
--- a/src/server/ingen_lv2.cpp
+++ b/src/server/ingen_lv2.cpp
@@ -399,9 +399,15 @@ Lib::Lib()
typedef Serialisation::Parser::PatchRecords Records;
- Records records(world->parser()->find_patches(
- world, Glib::filename_to_uri(
- Shared::bundle_file_path("manifest.ttl"))));
+ const std::string manifest_path = Shared::bundle_file_path("manifest.ttl");
+ const SerdNode base_node = serd_node_from_string(
+ SERD_URI, (const uint8_t*)manifest_path.c_str());
+
+ SerdEnv* env = serd_env_new(&base_node);
+ Records records(
+ world->parser()->find_patches(world, env,
+ Glib::filename_to_uri(manifest_path)));
+ serd_env_free(env);
for (Records::iterator i = records.begin(); i != records.end(); ++i) {
patches.push_back(