changeset 1879:652c5360e682

Ensure transforms are populated before instantiateDefaultPluginFor runs - otherwise if we have prior knowledge of a transform id, we can find ourselves trying to instantiate it before the plugin factory has heard of it and e.g. knows which server to use
author Chris Cannam
date Thu, 25 Jun 2020 12:20:06 +0100
parents 258e356b1a7b
children 5671836cdac7
files transform/TransformFactory.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/transform/TransformFactory.cpp	Mon Jun 22 16:57:09 2020 +0100
+++ b/transform/TransformFactory.cpp	Thu Jun 25 12:20:06 2020 +0100
@@ -803,6 +803,8 @@
 TransformFactory::instantiateDefaultPluginFor(TransformId identifier,
                                               sv_samplerate_t rate)
 {
+    populateTransforms();
+
     Transform t;
     t.setIdentifier(identifier);
     if (rate == 0) rate = 44100.0;