diff --git a/source/backend/engine/CarlaEngine.cpp b/source/backend/engine/CarlaEngine.cpp index 74dca4fc4..c2644d656 100644 --- a/source/backend/engine/CarlaEngine.cpp +++ b/source/backend/engine/CarlaEngine.cpp @@ -426,6 +426,8 @@ bool CarlaEngine::addPlugin(const BinaryType btype, const PluginType ptype, { if (std::strcmp(label, "http://calf.sourceforge.net/plugins/Analyzer") == 0) preferBridges = true; + if (std::strcmp(label, "http://calf.sourceforge.net/plugins/Fluidsynth") == 0) + preferBridges = true; if (std::strcmp(label, "http://factorial.hu/plugins/lv2/ir") == 0) preferBridges = true; } diff --git a/source/backend/plugin/CarlaPluginLV2.cpp b/source/backend/plugin/CarlaPluginLV2.cpp index 7fa02da6c..1eb8ba40e 100644 --- a/source/backend/plugin/CarlaPluginLV2.cpp +++ b/source/backend/plugin/CarlaPluginLV2.cpp @@ -4259,7 +4259,7 @@ public: const std::string s_uri(uri); const std::ptrdiff_t s_pos(std::find(fCustomURIDs.begin(), fCustomURIDs.end(), s_uri) - fCustomURIDs.begin()); - if (s_pos <= 0 || s_pos >= UINT32_MAX) + if (s_pos <= 0 || s_pos >= INT32_MAX) return CARLA_URI_MAP_ID_NULL; const LV2_URID urid = static_cast(s_pos); diff --git a/source/bridges-ui/CarlaBridgeUI-LV2.cpp b/source/bridges-ui/CarlaBridgeUI-LV2.cpp index ada41afd9..04c6e18b8 100644 --- a/source/bridges-ui/CarlaBridgeUI-LV2.cpp +++ b/source/bridges-ui/CarlaBridgeUI-LV2.cpp @@ -648,7 +648,7 @@ public: const std::string s_uri(uri); const std::ptrdiff_t s_pos(std::find(fCustomURIDs.begin(), fCustomURIDs.end(), s_uri) - fCustomURIDs.begin()); - if (s_pos <= 0 || s_pos >= UINT32_MAX) + if (s_pos <= 0 || s_pos >= INT32_MAX) return CARLA_URI_MAP_ID_NULL; const LV2_URID urid = static_cast(s_pos);