diff options
author | Hanspeter Portner <dev@open-music-kontrollers.ch> | 2016-07-10 12:55:45 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-08-31 23:51:31 -0400 |
commit | 0a0037a11e453ad4de7a15c1031670ceb5667db2 (patch) | |
tree | f6642a5e7519b4b188724d57eeb1fcaee1562a76 /src/jalv_console.c | |
parent | 7e3af735cea4fdefcd4483b1c92b2762ad6672dc (diff) | |
download | jalv-0a0037a11e453ad4de7a15c1031670ceb5667db2.tar.gz jalv-0a0037a11e453ad4de7a15c1031670ceb5667db2.tar.bz2 jalv-0a0037a11e453ad4de7a15c1031670ceb5667db2.zip |
Discover presence of UI before jack_activate
jalv.has_ui should be set before jack_activate. If not, patch:Get message
may be without effect and parameter replies never be sent from within jack
process callback, as the latter may run before the corresponding UI logic
(e.g. with jalv.has_ui still being false).
Diffstat (limited to 'src/jalv_console.c')
-rw-r--r-- | src/jalv_console.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/jalv_console.c b/src/jalv_console.c index e72ff7a..d3f3389 100644 --- a/src/jalv_console.c +++ b/src/jalv_console.c @@ -157,11 +157,15 @@ jalv_process_command(Jalv* jalv, const char* cmd) } } +bool +jalv_discover_ui(Jalv* jalv) +{ + return jalv->opts.show_ui; +} + int jalv_open_ui(Jalv* jalv) { - jalv->has_ui = jalv->opts.show_ui; - const LV2UI_Idle_Interface* idle_iface = NULL; const LV2UI_Show_Interface* show_iface = NULL; if (jalv->ui && jalv->opts.show_ui) { |