[Jack-Devel] jack_connect with empty string

Tobias Hoffmann lfile-list at thax.hardliners.org
Wed May 20 13:01:19 CEST 2015


Hi,

using jack 0.124.1 I happened to do this:
   const char *connect_to="";
   err=jack_connect(client,connect_to,myport);

and expected jack_connect to return an error. To my surprise it 
succeeded and connected "system:capture_1" to myport.

Is this "normal" and/or documented?

AFAICT, the technical reason is
   jack_port_shared_t::alias2="\0"  (resp. alias1)
and jack_get_port_by_name() returns the first such one...

   Tobias



More information about the Jackaudio mailing list