summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--utils/lv2apply.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 3d0b148..eebf8ba 100644
--- a/NEWS
+++ b/NEWS
@@ -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);
}