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.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.c')
-rw-r--r-- | src/jalv.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1410,6 +1410,9 @@ main(int argc, char** argv) /* Activate plugin */ lilv_instance_activate(jalv.instance); + /* Discover UI */ + jalv.has_ui = jalv_discover_ui(&jalv); + /* Activate Jack */ jack_activate(jalv.jack_client); jalv.sample_rate = jack_get_sample_rate(jalv.jack_client); |