From 454fa2352be82f42f7131924dafa50e7fcf7d219 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 10 Feb 2008 22:53:58 +0000 Subject: Fix lv2_simple_jack_host crash. git-svn-id: http://svn.drobilla.net/lad/slv2@1142 a436a847-0d15-0410-975c-d299462d15a1 --- hosts/lv2_simple_jack_host.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hosts/lv2_simple_jack_host.c b/hosts/lv2_simple_jack_host.c index 37991da..13ce5fa 100644 --- a/hosts/lv2_simple_jack_host.c +++ b/hosts/lv2_simple_jack_host.c @@ -53,6 +53,11 @@ main(int argc, char** argv) host.num_ports = 0; host.jack_ports = NULL; host.controls = NULL; + + /* Find all installed plugins */ + host.world = slv2_world_new(); + slv2_world_load_all(host.world); + SLV2Plugins plugins = slv2_world_get_all_plugins(host.world); /* Set up the port classes this app supports */ host.input_class = slv2_value_new_uri(host.world, SLV2_PORT_CLASS_INPUT); @@ -62,11 +67,6 @@ main(int argc, char** argv) * is the same as: */ host.control_class = slv2_value_new_uri(host.world, "http://lv2plug.in/ns/lv2core#ControlPort"); - - /* Find all installed plugins */ - host.world = slv2_world_new(); - slv2_world_load_all(host.world); - SLV2Plugins plugins = slv2_world_get_all_plugins(host.world); /* Find the plugin to run */ const char* plugin_uri_str = (argc == 2) ? argv[1] : NULL; -- cgit v1.2.1