diff options
author | Robin Gareus <robin@gareus.org> | 2014-07-16 17:08:25 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-07-16 17:08:42 +0200 |
commit | ac9219a3c884b69352ff5ab0d13f30fb15cf8e6e (patch) | |
tree | c80fce126bbf191ad394ffa37b8cbdd9a6ccdcee | |
parent | 692f69ba146af36d614727df0f9e1bf3c45245e8 (diff) |
LV2: don't leave active plugins deactivated after latency-compute-run
-rw-r--r-- | libs/ardour/lv2_plugin.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index 36f9032865..deff882d70 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -1888,6 +1888,7 @@ LV2Plugin::latency_compute_run() // Run the plugin so that it can set its latency parameter + bool was_activated = _was_activated; activate(); uint32_t port_index = 0; @@ -1918,6 +1919,9 @@ LV2Plugin::latency_compute_run() run(bufsize); deactivate(); + if (was_activated) { + activate(); + } } const LilvPort* |