Browse Source

Correct jack_port_get_connections function (should return NULL when no connections).

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1947 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.71
sletz 17 years ago
parent
commit
f6b3728629
2 changed files with 7 additions and 1 deletions
  1. +1
    -0
      ChangeLog
  2. +6
    -1
      common/JackGraphManager.cpp

+ 1
- 0
ChangeLog View File

@@ -25,6 +25,7 @@ Nedko Arnaudov
* Correct jack_client_open_aux, jack_client_open and jack_client_new.
* Correct jack_internal_client_load for wrapper layer.
* In thread model, execute a dummy cycle to be sure thread has the correct properties (ensure thread creation is finished).
* Correct jack_port_get_connections function (should return NULL when no connections).

2008-03-10 Stephane Letz <letz@grame.fr>


+ 6
- 1
common/JackGraphManager.cpp View File

@@ -704,7 +704,12 @@ const char** JackGraphManager::GetConnections(jack_port_id_t port_index)
next_index = GetCurrentIndex();
} while (cur_index != next_index); // Until a coherent state has been read

return res;
if (res[0]) { // at least one connection
return res;
} else { // empty array, should return NULL
free(res);
return NULL;
}
}

// Client


Loading…
Cancel
Save