# HG changeset patch # User reimar # Date 1200084908 0 # Node ID da94a59737681e90fbb3becd098c4b2a0136cea7 # Parent 5cf7cb85128f16653f22f6ed9234659f1e80234c Make code slightly less confusing to me diff -r 5cf7cb85128f -r da94a5973768 libao2/ao_jack.c --- a/libao2/ao_jack.c Fri Jan 11 20:42:32 2008 +0000 +++ b/libao2/ao_jack.c Fri Jan 11 20:55:08 2008 +0000 @@ -258,9 +258,9 @@ mp_msg(MSGT_AO, MSGL_FATAL, "[JACK] no physical ports available\n"); goto err_out; } - num_ports = 1; - while (matching_ports[num_ports]) num_ports++; - if (channels > num_ports) channels = num_ports; + i = 1; + while (matching_ports[i]) i++; + if (channels > i) channels = i; num_ports = channels; // create out output ports