diff --git a/source/discovery/carla-discovery.cpp b/source/discovery/carla-discovery.cpp index 6dbf9e195..3d07a3e10 100644 --- a/source/discovery/carla-discovery.cpp +++ b/source/discovery/carla-discovery.cpp @@ -1636,6 +1636,9 @@ int main(int argc, char* argv[]) const ScopedWorkingDirSet swds(filename); + CarlaString filenameStr(filename); + filenameStr.toLower(); + bool openLib = false; void* handle = nullptr; @@ -1660,9 +1663,6 @@ int main(int argc, char* argv[]) return 1; } - CarlaString filenameStr(filename); - filenameStr.toLower(); - if (filenameStr.contains("fluidsynth", true)) { DISCOVERY_OUT("info", "skipping fluidsynth based plugin");