You should get the output of 'jack_lsp' from the user. Who knows what
qjackctl is doing between calling 'jack_get_ports' and the patchbay display.
Another thing to examine, 'jack_connect' may also return EEXIST, if the
connection is already made, but your code doesn't distinguish between
this and other errors. Maybe there's a race condition where some other
program (qjackctl) has already connected the ports before your code gets
there?
Am 07.05.20 um 10:06 schrieb Kjetil Matheussen:
BTW, while not relevant to your problem
const char *portname2 = portname1==NULL ? NULL : portnames[1];
portname1 will never be NULL in this block, because it is checked to be
!= NULL in line 135, won't it?
Chris