aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-03-18 14:55:03 +0100
committerDavid Robillard <d@drobilla.net>2017-03-18 14:55:03 +0100
commit5f015f74427e39ca411032f5f42bc969f89cf9fe (patch)
treec5f3eaa1d425558e5d4e01355763c74216e58c4e /src/jalv.c
parent4d22c6a53ff1dcb657ab1913f1b100e42db19bca (diff)
downloadjalv-5f015f74427e39ca411032f5f42bc969f89cf9fe.tar.gz
jalv-5f015f74427e39ca411032f5f42bc969f89cf9fe.tar.bz2
jalv-5f015f74427e39ca411032f5f42bc969f89cf9fe.zip
Initialize worker if plugin provides necessary interface
This change ignores the schedule feature and initializes the worker(s) if the plugin provides the worker interface even if it doesn't list the schedule feature as supported. This relaxes support for sloppy plugins that don't list their features, and technically allows a plugin to only provide the interface and use it for synchronous thread-safe restore only (not that this makes much sense).
Diffstat (limited to 'src/jalv.c')
-rw-r--r--src/jalv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/jalv.c b/src/jalv.c
index 20f24e7..eaf7521 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -1110,8 +1110,7 @@ main(int argc, char** argv)
}
/* Create workers if necessary */
- if (lilv_plugin_has_feature(jalv.plugin, jalv.nodes.work_schedule)
- && lilv_plugin_has_extension_data(jalv.plugin, jalv.nodes.work_interface)) {
+ if (lilv_plugin_has_extension_data(jalv.plugin, jalv.nodes.work_interface)) {
const LV2_Worker_Interface* iface = (const LV2_Worker_Interface*)
lilv_instance_get_extension_data(jalv.instance, LV2_WORKER__interface);