Mercurial > hg > svcore
comparison transform/TransformFactory.cpp @ 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 | 7b6e18380e8f |
children |
comparison
equal
deleted
inserted
replaced
1877:258e356b1a7b | 1879:652c5360e682 |
---|---|
801 | 801 |
802 std::shared_ptr<Vamp::PluginBase> | 802 std::shared_ptr<Vamp::PluginBase> |
803 TransformFactory::instantiateDefaultPluginFor(TransformId identifier, | 803 TransformFactory::instantiateDefaultPluginFor(TransformId identifier, |
804 sv_samplerate_t rate) | 804 sv_samplerate_t rate) |
805 { | 805 { |
806 populateTransforms(); | |
807 | |
806 Transform t; | 808 Transform t; |
807 t.setIdentifier(identifier); | 809 t.setIdentifier(identifier); |
808 if (rate == 0) rate = 44100.0; | 810 if (rate == 0) rate = 44100.0; |
809 QString pluginId = t.getPluginIdentifier(); | 811 QString pluginId = t.getPluginIdentifier(); |
810 | 812 |