Browse Source

do not attempt local (non-server-call) check on connections in jack_port_disconnect unless port is owned by caller

tags/0.126.0
Paul Davis Filipe Coelho <falktx@falktx.com> 4 years ago
parent
commit
2e78fb6c88
1 changed files with 9 additions and 5 deletions
  1. +9
    -5
      libjack/client.c

+ 9
- 5
libjack/client.c View File

@@ -2662,15 +2662,19 @@ jack_port_disconnect (jack_client_t *client, jack_port_t *port)
{
jack_request_t req;

pthread_mutex_lock (&port->connection_lock);
if (port->shared->client_id == client->control->uuid) {

pthread_mutex_lock (&port->connection_lock);

if (port->connections == NULL) {
printf ("JACK port not connected\n");
pthread_mutex_unlock (&port->connection_lock);
return 0;
}

if (port->connections == NULL) {
pthread_mutex_unlock (&port->connection_lock);
return 0;
}

pthread_mutex_unlock (&port->connection_lock);

VALGRIND_MEMSET (&req, 0, sizeof(req));

req.type = DisconnectPort;


Loading…
Cancel
Save