From 31f42b9be5aa3a157ec8eaba574890df9b9d6cf2 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 19 Oct 2023 17:49:05 +0200 Subject: [PATCH] VST3: Prevent recursive calls, part II See also 7227407aa6c --- libs/ardour/vst3_plugin.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/ardour/vst3_plugin.cc b/libs/ardour/vst3_plugin.cc index 2ce08cdd83..ca431257d2 100644 --- a/libs/ardour/vst3_plugin.cc +++ b/libs/ardour/vst3_plugin.cc @@ -3235,12 +3235,13 @@ VST3PI::resume_notifications () if (!PBD::atomic_dec_and_test (_block_rpc)) { return; } + ARDOUR::RouteProcessorChange rpc (RouteProcessorChange::NoProcessorChange, false); + std::swap (rpc, _rpc_queue); + Route* r = dynamic_cast (_owner); if (r && _rpc_queue.type != RouteProcessorChange::NoProcessorChange) { - r->processors_changed (_rpc_queue); /* EMIT SIGNAL */ + r->processors_changed (rpc); /* EMIT SIGNAL */ } - _rpc_queue.type = RouteProcessorChange::NoProcessorChange; - _rpc_queue.meter_visibly_changed = false; } void