Browse Source

Correct init code

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1473 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.63
sletz 18 years ago
parent
commit
d75c0de09c
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      common/JackClient.cpp

+ 4
- 2
common/JackClient.cpp View File

@@ -48,6 +48,7 @@ JackClient::JackClient(JackSynchro** table)
fShutdown = NULL;
fInit = NULL;
fBufferSize = NULL;
fClientRegistration = NULL;
fFreewheel = NULL;
fPortRegistration = NULL;
fSync = NULL;
@@ -58,6 +59,7 @@ JackClient::JackClient(JackSynchro** table)
fInitArg = NULL;
fBufferSizeArg = NULL;
fFreewheelArg = NULL;
fClientRegistrationArg = NULL;
fPortRegistrationArg = NULL;
fSyncArg = NULL;
fConditionnal = 0; // Temporary??
@@ -150,13 +152,13 @@ int JackClient::ClientNotify(int refnum, const char* name, int notify, int sync,
switch (notify) {
case JackNotifyChannelInterface::kAddClient:
printf("ClientNotify fName = %s name = %s\n", GetClientControl()->fName, name);
JackLog("JackClient::kAddClient fName = %s name = %s\n", GetClientControl()->fName, name);
if (fClientRegistration && strcmp(GetClientControl()->fName, name) != 0) // Don't call the callback for the registering client itself
fClientRegistration(name, 1, fClientRegistrationArg);
break;
case JackNotifyChannelInterface::kRemoveClient:
printf("ClientNotify fName = %s name = %s\n", GetClientControl()->fName, name);
JackLog("JackClient::kRemoveClient fName = %s name = %s\n", GetClientControl()->fName, name);
if (fClientRegistration && strcmp(GetClientControl()->fName, name) != 0) // Don't call the callback for the registering client itself
fClientRegistration(name, 0, fClientRegistrationArg);
break;


Loading…
Cancel
Save