[svn-commits] russell: branch russell/jack r96768 - /team/russell/jack/apps/app_jack.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Sun Jan 6 11:08:09 CST 2008
Author: russell
Date: Sun Jan 6 11:08:08 2008
New Revision: 96768
URL: http://svn.digium.com/view/asterisk?view=rev&rev=96768
Log:
When specifying jack input and output ports to automatically connect to, print
out the ports that matched the provided expression as debug messages.
Modified:
team/russell/jack/apps/app_jack.c
Modified: team/russell/jack/apps/app_jack.c
URL: http://svn.digium.com/view/asterisk/team/russell/jack/apps/app_jack.c?view=diff&rev=96768&r1=96767&r2=96768
==============================================================================
--- team/russell/jack/apps/app_jack.c (original)
+++ team/russell/jack/apps/app_jack.c Sun Jan 6 11:08:08 2008
@@ -396,6 +396,7 @@
while (!ast_strlen_zero(jack_data->connect_input_port)) {
const char **ports;
+ int i;
ports = jack_get_ports(jack_data->client, jack_data->connect_input_port,
NULL, JackPortIsInput);
@@ -404,6 +405,11 @@
ast_log(LOG_ERROR, "No input port matching '%s' was found\n",
jack_data->connect_input_port);
break;
+ }
+
+ for (i = 0; ports[i]; i++) {
+ ast_debug(1, "Found port '%s' that matched specified input port '%s'\n",
+ ports[i], jack_data->connect_input_port);
}
if (jack_connect(jack_data->client, jack_port_name(jack_data->output_port), ports[0])) {
@@ -421,6 +427,7 @@
while (!ast_strlen_zero(jack_data->connect_output_port)) {
const char **ports;
+ int i;
ports = jack_get_ports(jack_data->client, jack_data->connect_output_port,
NULL, JackPortIsOutput);
@@ -429,6 +436,11 @@
ast_log(LOG_ERROR, "No output port matching '%s' was found\n",
jack_data->connect_output_port);
break;
+ }
+
+ for (i = 0; ports[i]; i++) {
+ ast_debug(1, "Found port '%s' that matched specified output port '%s'\n",
+ ports[i], jack_data->connect_output_port);
}
if (jack_connect(jack_data->client, ports[0], jack_port_name(jack_data->input_port))) {
More information about the svn-commits
mailing list