Return an empty string instead of a bool
[ardour.git] / libs / ardour / lv2_plugin.cc
index 6d4a71869f0c9105bd02060d3ed39dca8e02a0f7..5ea76934a5ffe85923ee5be67d6c052aaacb45c5 100644 (file)
@@ -1233,6 +1233,8 @@ LV2Plugin::set_state(const XMLNode& node, int version)
                return -1;
        }
 
+#ifndef NO_PLUGIN_STATE
+
        if (version < 3000) {
                nodes = node.children("port");
        } else {
@@ -1288,6 +1290,7 @@ LV2Plugin::set_state(const XMLNode& node, int version)
        }
 
        latency_compute_run();
+#endif
 
        return Plugin::set_state(node, version);
 }
@@ -1980,16 +1983,18 @@ LV2World::load_bundled_plugins()
                if (plugin_objects) {
                        for ( vector<string *>::iterator x = plugin_objects->begin(); x != plugin_objects->end (); ++x) {
 #ifdef WINDOWS
-                                       string uri = "file:///" + **x + "/";
+                               string uri = "file:///" + **x + "/";
 #else
-                                       string uri = "file://" + **x + "/";
+                               string uri = "file://" + **x + "/";
 #endif
-                                       LilvNode *node = lilv_new_uri(world, uri.c_str());
-                                       lilv_world_load_bundle(world, node);
-                                       lilv_node_free(node);
-                               }
+                               LilvNode *node = lilv_new_uri(world, uri.c_str());
+                               lilv_world_load_bundle(world, node);
+                               lilv_node_free(node);
                        }
+               }
                delete (plugin_objects);
+
+               _bundle_checked = true;
        }
 }