summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-03-18 19:41:35 +0100
committerDavid Robillard <d@drobilla.net>2017-03-18 19:41:35 +0100
commit1a31907d1ad2e9c8ed0cdced09e81f7a7ec07504 (patch)
tree554d9c36dabd77ac85f6a13f741a1e6db2287e2f /src/server
parentabe23eeec2c33303c5d5297e29ac48dcf829fb18 (diff)
downloadingen-1a31907d1ad2e9c8ed0cdced09e81f7a7ec07504.tar.gz
ingen-1a31907d1ad2e9c8ed0cdced09e81f7a7ec07504.tar.bz2
ingen-1a31907d1ad2e9c8ed0cdced09e81f7a7ec07504.zip
Don't delete existing graph contents on LV2 restore
Diffstat (limited to 'src/server')
-rw-r--r--src/server/ingen_lv2.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/ingen_lv2.cpp b/src/server/ingen_lv2.cpp
index 1604ec4f..b3489d6d 100644
--- a/src/server/ingen_lv2.cpp
+++ b/src/server/ingen_lv2.cpp
@@ -756,6 +756,7 @@ ingen_restore(LV2_Handle instance,
return LV2_STATE_ERR_UNKNOWN;
}
+#if 0
// Remove existing root graph contents
SPtr<Engine> engine = plugin->engine;
for (const auto& b : engine->root_graph()->blocks()) {
@@ -769,6 +770,7 @@ ingen_restore(LV2_Handle instance,
plugin->world->interface()->del(port->uri());
}
}
+#endif
// Load new graph
std::lock_guard<std::mutex> lock(plugin->world->rdf_mutex());