Browse Source

Fix UI-bridge URI mapping if URIs received out of order

tags/1.9.5
falkTX 10 years ago
parent
commit
6eaf6b904d
2 changed files with 4 additions and 2 deletions
  1. +1
    -1
      source/backend/plugin/Lv2Plugin.cpp
  2. +3
    -1
      source/bridges-ui/CarlaBridgeUI-LV2.cpp

+ 1
- 1
source/backend/plugin/Lv2Plugin.cpp View File

@@ -5222,7 +5222,7 @@ public:
void handleTransferAtom(const uint32_t portIndex, const LV2_Atom* const atom)
{
CARLA_SAFE_ASSERT_RETURN(atom != nullptr,);
carla_stdout("Lv2Plugin::handleTransferAtom(%i, %p)", portIndex, atom);
carla_debug("Lv2Plugin::handleTransferAtom(%i, %p)", portIndex, atom);

fAtomBufferIn.put(atom, portIndex);
}


+ 3
- 1
source/bridges-ui/CarlaBridgeUI-LV2.cpp View File

@@ -735,8 +735,10 @@ public:
{
for (uint32_t i=uridCount; i < urid; ++i)
fCustomURIDs.append(nullptr);

fCustomURIDs.append(carla_strdup(uri));
}
else
else // urid == uridCount
{
fCustomURIDs.append(carla_strdup(uri));
}


Loading…
Cancel
Save