From 8defdcb32f4421c9d124767d1c677c05791ead55 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 11 Oct 2007 02:31:34 +0000 Subject: Fix Gtk rendering corruption problems when running monolithic (internal engine). Reduce Gtk main loop overhead when running monolithic. Fix crash on importing certain Om patches. git-svn-id: http://svn.drobilla.net/lad/ingen@870 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/NodeFactory.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/libs/engine/NodeFactory.cpp') diff --git a/src/libs/engine/NodeFactory.cpp b/src/libs/engine/NodeFactory.cpp index b2714e23..c2b9536a 100644 --- a/src/libs/engine/NodeFactory.cpp +++ b/src/libs/engine/NodeFactory.cpp @@ -336,7 +336,11 @@ NodeFactory::load_lv2_plugin(const string& plug_uri, if (plugin) { n = new LV2Node(plugin, node_name, polyphonic, parent, srate, buffer_size); - bool success = ((LV2Node*)n)->instantiate(); + + Glib::Mutex::Lock lock(_world->rdf_world->mutex()); + + const bool success = ((LV2Node*)n)->instantiate(); + if (!success) { delete n; n = NULL; -- cgit v1.2.1