diff options
author | Robin Gareus <robin@gareus.org> | 2019-10-28 16:12:58 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-10-28 16:14:24 +0100 |
commit | 86337810fe5cf2ebf1f3576378b9f3dc912077a7 (patch) | |
tree | 331b44d070e3eab9dcfcb344afdf23f0b4b244bd /libs/ardour/lv2_plugin.cc | |
parent | 760a7fda81e9a0b046c5ccc58a907f225d6ddc69 (diff) |
NO-OP: whitespace and comments
Diffstat (limited to 'libs/ardour/lv2_plugin.cc')
-rw-r--r-- | libs/ardour/lv2_plugin.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index 1845d85c83..5c19501cdc 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -846,10 +846,9 @@ LV2Plugin::init(const void* c_plugin, samplecnt_t rate) delete[] params; LilvUIs* uis = lilv_plugin_get_uis(plugin); + if (lilv_uis_size(uis) > 0) { #ifdef HAVE_SUIL - // Look for embeddable UI - // TODO: Multiple UI support const LilvUI* this_ui = NULL; const LilvNode* this_ui_type = NULL; // Always prefer X11 UIs... @@ -865,10 +864,10 @@ LV2Plugin::init(const void* c_plugin, samplecnt_t rate) if (this_ui_type == NULL) { LILV_FOREACH(uis, i, uis) { const LilvUI* ui = lilv_uis_get(uis, i); - if (lilv_ui_is_supported(ui, - suil_ui_supported, - _world.ui_GtkUI, - &this_ui_type)) { + if (lilv_ui_is_supported (ui, + suil_ui_supported, + _world.ui_GtkUI, + &this_ui_type)) { this_ui = ui; break; } |