From 0400ae20477ea87c7c10c95bf784fcfb99e28ce6 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 12 Oct 2020 19:06:30 +0200 Subject: [PATCH] Fix VST3 debug message get_info() is not yet available during Plugin::init(). set_info() is only called after from VST3PluginInfo::load() after the plugin was instantiated. --- libs/ardour/vst3_plugin.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/ardour/vst3_plugin.cc b/libs/ardour/vst3_plugin.cc index 9aca9e1e54..23d439793d 100644 --- a/libs/ardour/vst3_plugin.cc +++ b/libs/ardour/vst3_plugin.cc @@ -73,7 +73,13 @@ VST3Plugin::~VST3Plugin () void VST3Plugin::init () { - DEBUG_TRACE (DEBUG::VST3Config, string_compose ("VST3 instantiating: %1\n", get_info()->unique_id)); +#ifndef NDEBUG + if (DEBUG_ENABLED(DEBUG::VST3Config)) { + char fuid[33]; + _plug->fuid().toString (fuid); + DEBUG_TRACE (DEBUG::VST3Config, string_compose ("VST3 instantiating FUID: %1\n", fuid)); + } +#endif Vst::ProcessContext& context (_plug->context ()); context.sampleRate = _session.nominal_sample_rate (); _plug->set_block_size (_session.get_block_size ());