summaryrefslogtreecommitdiffstats
path: root/hosts/lv2_simple_jack_host.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-02-10 22:53:58 +0000
committerDavid Robillard <d@drobilla.net>2008-02-10 22:53:58 +0000
commit454fa2352be82f42f7131924dafa50e7fcf7d219 (patch)
treebd19eef63af38eaee72ef3dae1671225a7744276 /hosts/lv2_simple_jack_host.c
parentac3da90ab3b2852f34e0710c9b31000ef56259dd (diff)
downloadlilv-454fa2352be82f42f7131924dafa50e7fcf7d219.tar.gz
lilv-454fa2352be82f42f7131924dafa50e7fcf7d219.tar.bz2
lilv-454fa2352be82f42f7131924dafa50e7fcf7d219.zip
Fix lv2_simple_jack_host crash.
git-svn-id: http://svn.drobilla.net/lad/slv2@1142 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'hosts/lv2_simple_jack_host.c')
-rw-r--r--hosts/lv2_simple_jack_host.c10
1 files 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;