From 5f015f74427e39ca411032f5f42bc969f89cf9fe Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 18 Mar 2017 14:55:03 +0100 Subject: 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). --- src/jalv.c | 3 +-- 1 file changed, 1 insertion(+), 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); -- cgit v1.2.1