Commit 36efef82 authored by sletz's avatar sletz
Browse files

Correct NetAudioBuffer::ActivePortsToNetwork and NetAudioBuffer::ActivePortsFromNetwork.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4624 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 61d28aaf
......@@ -271,7 +271,7 @@ namespace Jack
for (int port_index = 0; port_index < fNPorts; port_index++) {
// Write the active port number
if (fPortBuffer[port_index]) {
*active_port_address = port_index;
*active_port_address = htonl(port_index);
active_port_address++;
active_ports++;
assert(active_ports < 256);
......@@ -291,7 +291,7 @@ namespace Jack
for (uint port_index = 0; port_index < port_num; port_index++) {
// Use -1 when port is actually connected on other side
int active_port = *active_port_address;
int active_port = ntohl(*active_port_address);
if (active_port >= 0 && active_port < fNPorts) {
fConnectedPorts[active_port] = true;
} else {
......
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