From 8d14a10cae9582234ff1edd65b127c4b5028173f Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 14 Jul 2013 05:49:00 +0100 Subject: [PATCH] Remove excessive prints, always make sure plugin bridges have name --- source/backend/engine/CarlaEngineBridge.cpp | 7 ++----- source/backend/plugin/BridgePlugin.cpp | 10 ++++++++++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/source/backend/engine/CarlaEngineBridge.cpp b/source/backend/engine/CarlaEngineBridge.cpp index a678c52de..986cdc3bc 100644 --- a/source/backend/engine/CarlaEngineBridge.cpp +++ b/source/backend/engine/CarlaEngineBridge.cpp @@ -261,8 +261,6 @@ public: while (! fQuitNow) { - carla_debug("CarlaEngineBridge::run() - try wait"); - if (! jackbridge_sem_timedwait(&fShmControl.data->runServer, 5)) { if (errno == ETIMEDOUT) @@ -273,13 +271,12 @@ public: } } - carla_debug("CarlaEngineBridge::run() - connected"); - while (fShmControl.dataAvailable()) { const PluginBridgeOpcode opcode(fShmControl.readOpcode()); - carla_debug("CarlaEngineBridge::run() - got opcode: %s", PluginBridgeOpcode2str(opcode)); + if (opcode != kPluginBridgeOpcodeProcess) + carla_debug("CarlaEngineBridge::run() - got opcode: %s", PluginBridgeOpcode2str(opcode)); switch (opcode) { diff --git a/source/backend/plugin/BridgePlugin.cpp b/source/backend/plugin/BridgePlugin.cpp index a1eeffa9b..9d1c6be95 100644 --- a/source/backend/plugin/BridgePlugin.cpp +++ b/source/backend/plugin/BridgePlugin.cpp @@ -1823,6 +1823,16 @@ public: // --------------------------------------------------------------- // register client + if (fName.isEmpty()) + { + if (name != nullptr) + fName = kData->engine->getUniquePluginName(name); + else if (label != nullptr) + fName = kData->engine->getUniquePluginName(label); + else + fName = kData->engine->getUniquePluginName("unknown"); + } + kData->client = kData->engine->addClient(this); if (kData->client == nullptr || ! kData->client->isOk())