Commit 97c9add6 authored by sletz's avatar sletz
Browse files

Cleanup

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1850 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 84b20ca1
......@@ -562,20 +562,20 @@ int JackEngine::ClientCloseAux(int refnum, JackClientInterface* client, bool wai
ReleaseRefnum(refnum);
// Remove ports : notiy unregister then remove all ports
jack_int_t input[PORT_NUM_FOR_CLIENT];
fGraphManager->GetInputPorts(refnum, input);
jack_int_t ports[PORT_NUM_FOR_CLIENT];
fGraphManager->GetInputPorts(refnum, ports);
for (int i = 0; i < PORT_NUM_FOR_CLIENT; i++) {
if (input[i] != EMPTY)
NotifyPortRegistation(input[i], false);
if (ports[i] != EMPTY)
NotifyPortRegistation(ports[i], false);
else
break;
}
jack_int_t output[PORT_NUM_FOR_CLIENT];
fGraphManager->GetInputPorts(refnum, output);
fGraphManager->GetInputPorts(refnum, ports);
for (int i = 0; i < PORT_NUM_FOR_CLIENT; i++) {
if (output[i] != EMPTY)
NotifyPortRegistation(output[i], false);
if (ports[i] != EMPTY)
NotifyPortRegistation(ports[i], false);
else
break;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment