Browse Source

Use our metadata thread-safe mutex for the new check, seems to work

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.3.1
falkTX 3 years ago
parent
commit
3242f135d6
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 9 additions and 6 deletions
  1. +9
    -6
      source/backend/engine/CarlaEngineJack.cpp

+ 9
- 6
source/backend/engine/CarlaEngineJack.cpp View File

@@ -4262,17 +4262,20 @@ private:


case PostPonedJackEvent::kTypeClientPositionChange: case PostPonedJackEvent::kTypeClientPositionChange:
{ {
/* FIXME there is something seriously wrong on the JACK side if we try to do this...
char uuidstr[JACK_UUID_STRING_SIZE]; char uuidstr[JACK_UUID_STRING_SIZE];
carla_zeroStruct(uuidstr); carla_zeroStruct(uuidstr);
jackbridge_uuid_unparse(ev.clientPositionChange.uuid, uuidstr); jackbridge_uuid_unparse(ev.clientPositionChange.uuid, uuidstr);


const char* const clientname = jackbridge_get_client_name_by_uuid(fClient, uuidstr);
CARLA_SAFE_ASSERT_CONTINUE(clientname != nullptr && clientname[0] != '\0');
if (clientsToIgnore.count() != 0)
{
const CarlaRecursiveMutexLocker crml(fThreadSafeMetadataMutex);


if (clientsToIgnore.contains(clientname))
continue;
*/
const char* const clientname = jackbridge_get_client_name_by_uuid(fClient, uuidstr);
CARLA_SAFE_ASSERT_CONTINUE(clientname != nullptr && clientname[0] != '\0');

if (clientsToIgnore.contains(clientname))
continue;
}


handleJackClientPositionChangeCallback(ev.clientPositionChange.uuid); handleJackClientPositionChangeCallback(ev.clientPositionChange.uuid);
break; break;


Loading…
Cancel
Save