diff options
author | David Robillard <d@drobilla.net> | 2011-12-10 04:38:14 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-12-10 04:38:14 +0000 |
commit | 1849c5d7f96db8f2dfed04208e0c49685c50d4a4 (patch) | |
tree | 670edaa8bdc8531bf52a4741be8c51059c1865a5 /src | |
parent | 48a455c750abc042c84a58e9edef00daf0d7915a (diff) | |
download | jalv-1849c5d7f96db8f2dfed04208e0c49685c50d4a4.tar.gz jalv-1849c5d7f96db8f2dfed04208e0c49685c50d4a4.tar.bz2 jalv-1849c5d7f96db8f2dfed04208e0c49685c50d4a4.zip |
Betrer tolerate UIs that fail to instantiate.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@3850 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/jalv.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -707,6 +707,10 @@ main(int argc, char** argv) lilv_uri_to_path(lilv_node_as_uri(lilv_ui_get_binary_uri(host.ui))), features); + if (!host.ui_instance) { + die("Failed to instantiate plugin.\n"); + } + /* Set initial control values for UI */ for (uint32_t i = 0; i < host.num_ports; ++i) { if (host.ports[i].type == TYPE_CONTROL) { |