Browse Source

Remove excessive prints, always make sure plugin bridges have name

tags/1.9.4
falkTX 11 years ago
parent
commit
8d14a10cae
2 changed files with 12 additions and 5 deletions
  1. +2
    -5
      source/backend/engine/CarlaEngineBridge.cpp
  2. +10
    -0
      source/backend/plugin/BridgePlugin.cpp

+ 2
- 5
source/backend/engine/CarlaEngineBridge.cpp View File

@@ -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)
{


+ 10
- 0
source/backend/plugin/BridgePlugin.cpp View File

@@ -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())


Loading…
Cancel
Save