From 6eaf6b904d793b5148ae1c27163406ab15b61aad Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 23 Aug 2014 19:01:41 +0100 Subject: [PATCH] Fix UI-bridge URI mapping if URIs received out of order --- source/backend/plugin/Lv2Plugin.cpp | 2 +- source/bridges-ui/CarlaBridgeUI-LV2.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/source/backend/plugin/Lv2Plugin.cpp b/source/backend/plugin/Lv2Plugin.cpp index 5a8974bf4..a90e9ac83 100644 --- a/source/backend/plugin/Lv2Plugin.cpp +++ b/source/backend/plugin/Lv2Plugin.cpp @@ -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); } diff --git a/source/bridges-ui/CarlaBridgeUI-LV2.cpp b/source/bridges-ui/CarlaBridgeUI-LV2.cpp index a05c574cf..f6bca01dd 100644 --- a/source/bridges-ui/CarlaBridgeUI-LV2.cpp +++ b/source/bridges-ui/CarlaBridgeUI-LV2.cpp @@ -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)); }