diff options
author | David Robillard <d@drobilla.net> | 2018-07-21 12:28:59 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-07-21 12:28:59 +0200 |
commit | a0a6bb9ca84b49d2e3b40bc6b0591c88d9d61b6b (patch) | |
tree | 07651f2927a83387412ab1a12bc6458ab89acdc0 | |
parent | 5e80e165754064e9942fdf7bd3449a9f4fa047a0 (diff) | |
download | lilv-a0a6bb9ca84b49d2e3b40bc6b0591c88d9d61b6b.tar.gz lilv-a0a6bb9ca84b49d2e3b40bc6b0591c88d9d61b6b.tar.bz2 lilv-a0a6bb9ca84b49d2e3b40bc6b0591c88d9d61b6b.zip |
lv2apply: Activate plugin before running
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | utils/lv2apply.c | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -2,6 +2,7 @@ lilv (0.24.3) unstable; * Fix saving state when broken links are encountered * Don't attempt to load remote or non-Turtle files + * lv2apply: Activate plugin before running * lv2apply: Use default values when they are not nan * lv2bench: Improve support for plugins with sequence ports * lv2bench: Support running a single plugin given on the command line @@ -10,7 +11,7 @@ lilv (0.24.3) unstable; * Install Python bindings when configured without tests (thanks Clement Skau) - -- David Robillard <d@drobilla.net> Tue, 10 Jul 2018 20:14:01 +0200 + -- David Robillard <d@drobilla.net> Sat, 21 Jul 2018 12:28:43 +0200 lilv (0.24.2) stable; diff --git a/utils/lv2apply.c b/utils/lv2apply.c index c664d05..66a8c3a 100644 --- a/utils/lv2apply.c +++ b/utils/lv2apply.c @@ -341,12 +341,14 @@ main(int argc, char** argv) a single frame at a time and avoid having to interleave buffers to read/write from/to sndfile. */ + lilv_instance_activate(self.instance); while (sread(self.in_file, in_fmt.channels, in_buf, self.n_audio_in)) { lilv_instance_run(self.instance, 1); if (sf_writef_float(self.out_file, out_buf, 1) != 1) { return fatal(&self, 9, "Failed to write to output file\n"); } } + lilv_instance_deactivate(self.instance); return cleanup(0, &self); } |