- unsigned int i_in_ports, i_prefix_len;
- const char **pp_in_ports;
-
- pp_in_ports = jack_get_ports( p_sys->p_jack_client, NULL, NULL,
- JackPortIsInput );
- psz_prefix = config_GetPsz( p_aout, CONNECT_MATCH_OPTION );
- i_prefix_len = psz_prefix ? strlen(psz_prefix) : 0;
-
- /* Find JACK input ports to connect to */
- i = 0;
+ unsigned int i_in_ports;
+ char *psz_regex = config_GetPsz( p_aout, CONNECT_REGEX_OPTION );
+ const char **pp_in_ports = jack_get_ports( p_sys->p_jack_client,
+ psz_regex, NULL,
+ JackPortIsInput );
+ free( psz_regex );
+ /* Count the number of returned ports */