summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/server')
-rw-r--r--src/server/events/Copy.cpp3
-rw-r--r--src/server/ingen_lv2.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/server/events/Copy.cpp b/src/server/events/Copy.cpp
index 9fa3deed..38cbc6d8 100644
--- a/src/server/events/Copy.cpp
+++ b/src/server/events/Copy.cpp
@@ -157,7 +157,8 @@ Copy::engine_to_filesystem(PreProcessContext& ctx)
if (ends_with(_msg.new_uri, ".ingen") || ends_with(_msg.new_uri, ".ingen/")) {
_engine.world().serialiser()->write_bundle(graph, URI(_msg.new_uri));
} else {
- _engine.world().serialiser()->start_to_file(graph->path(), _msg.new_uri);
+ _engine.world().serialiser()->start_to_file(graph->path(),
+ _msg.new_uri.file_path());
_engine.world().serialiser()->serialise(graph);
_engine.world().serialiser()->finish();
}
diff --git a/src/server/ingen_lv2.cpp b/src/server/ingen_lv2.cpp
index 625f87c6..b40ccbf9 100644
--- a/src/server/ingen_lv2.cpp
+++ b/src/server/ingen_lv2.cpp
@@ -720,7 +720,8 @@ ingen_save(LV2_Handle instance,
{
std::lock_guard<std::mutex> lock(plugin->world->rdf_mutex());
- plugin->world->serialiser()->start_to_file(root->second->path(), real_path);
+ plugin->world->serialiser()->start_to_file(
+ root->second->path(), FilePath{real_path});
plugin->world->serialiser()->serialise(root->second);
plugin->world->serialiser()->finish();
}