summaryrefslogtreecommitdiffstats
path: root/utils/lv2apply.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-07-21 12:28:59 +0200
committerDavid Robillard <d@drobilla.net>2018-07-21 12:28:59 +0200
commita0a6bb9ca84b49d2e3b40bc6b0591c88d9d61b6b (patch)
tree07651f2927a83387412ab1a12bc6458ab89acdc0 /utils/lv2apply.c
parent5e80e165754064e9942fdf7bd3449a9f4fa047a0 (diff)
downloadlilv-a0a6bb9ca84b49d2e3b40bc6b0591c88d9d61b6b.tar.gz
lilv-a0a6bb9ca84b49d2e3b40bc6b0591c88d9d61b6b.tar.bz2
lilv-a0a6bb9ca84b49d2e3b40bc6b0591c88d9d61b6b.zip
lv2apply: Activate plugin before running
Diffstat (limited to 'utils/lv2apply.c')
-rw-r--r--utils/lv2apply.c2
1 files changed, 2 insertions, 0 deletions
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);
}