Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-01-22 10:23:29 +00:00
parent 39addfc438
commit 7977e04e32
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
4 changed files with 10 additions and 48 deletions

View file

@ -1181,11 +1181,15 @@ struct IldaeilWidget : ImGuiWidget, IdleCallback, Thread {
fPluginCount = 0;
delete[] fPlugins;
const MutexLocker cml(sPluginInfoLoadMutex);
uint count;
d_stdout("Will scan plugins now...");
const uint count = carla_get_cached_plugin_count(fPluginType, path);
d_stdout("Scanning found %u plugins", count);
{
const MutexLocker cml(sPluginInfoLoadMutex);
d_stdout("Will scan plugins now...");
count = carla_get_cached_plugin_count(fPluginType, path);
d_stdout("Scanning found %u plugins", count);
}
if (fDrawingState == kDrawingLoading)
{
@ -1199,6 +1203,8 @@ struct IldaeilWidget : ImGuiWidget, IdleCallback, Thread {
for (uint i=0, j; i < count && ! shouldThreadExit(); ++i)
{
const MutexLocker cml(sPluginInfoLoadMutex);
const CarlaCachedPluginInfo* const info = carla_get_cached_plugin_info(fPluginType, i);
DISTRHO_SAFE_ASSERT_CONTINUE(info != nullptr);