From 591f3710bd4f30859c430fa3954eab91eebc3bf3 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 7 Sep 2022 18:23:36 +0200 Subject: [PATCH] Add missing reset call to standalone init The plugin versions also do this, and the docs mention that this always happens. --- src/wrapper/standalone/wrapper.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wrapper/standalone/wrapper.rs b/src/wrapper/standalone/wrapper.rs index 6c95f6d2..53b330d5 100644 --- a/src/wrapper/standalone/wrapper.rs +++ b/src/wrapper/standalone/wrapper.rs @@ -23,6 +23,7 @@ use crate::plugin::{ }; use crate::util::permit_alloc; use crate::wrapper::state::{self, PluginState}; +use crate::wrapper::util::process_wrapper; /// How many parameter changes we can store in our unprocessed parameter change queue. Storing more /// than this many parameters at a time will cause changes to get lost. @@ -228,6 +229,7 @@ impl Wrapper { ) { return Err(WrapperError::InitializationFailed); } + process_wrapper(|| plugin.reset()); } Ok(wrapper)