Browse Source

Fix for making connections to ports belong to clients not yet activated.

git-svn-id: svn+ssh://jackaudio.org/trunk/jack@310 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.109.0
kaiv 22 years ago
parent
commit
ac2671a669
2 changed files with 11 additions and 9 deletions
  1. +1
    -1
      configure.in
  2. +10
    -8
      jackd/engine.c

+ 1
- 1
configure.in View File

@@ -14,7 +14,7 @@ dnl changes are made
dnl ---
JACK_MAJOR_VERSION=0
JACK_MINOR_VERSION=44
JACK_MICRO_VERSION=0
JACK_MICRO_VERSION=1

dnl ---
dnl HOWTO: updating the libjack interface version


+ 10
- 8
jackd/engine.c View File

@@ -3196,14 +3196,16 @@ jack_send_connection_notification (jack_engine_t *engine, jack_client_id_t clien
return -1;
}

event.type = (connected ? PortConnected : PortDisconnected);
event.x.self_id = self_id;
event.y.other_id = other_id;

if (jack_deliver_event (engine, client, &event)) {
jack_error ("cannot send port connection notification to client %s (%s)",
client->control->name, strerror (errno));
return -1;
if (client->control->active) {
event.type = (connected ? PortConnected : PortDisconnected);
event.x.self_id = self_id;
event.y.other_id = other_id;
if (jack_deliver_event (engine, client, &event)) {
jack_error ("cannot send port connection notification to client %s (%s)",
client->control->name, strerror (errno));
return -1;
}
}

return 0;


Loading…
Cancel
Save