diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-01-11 20:55:08 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-01-11 20:55:08 +0000 |
commit | 8c384193743cfb6256fbd3c09f8b019bbdf88f57 (patch) | |
tree | 9adf8b42831b583f6a0dd9bf58d065c87843c8f9 | |
parent | c9f2fed14529bea7589cc2874bedbd7b1d9e71ac (diff) |
Make code slightly less confusing to me
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25678 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libao2/ao_jack.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libao2/ao_jack.c b/libao2/ao_jack.c index 573d6dfbf7..70f9bfad1b 100644 --- a/libao2/ao_jack.c +++ b/libao2/ao_jack.c @@ -258,9 +258,9 @@ static int init(int rate, int channels, int format, int flags) { 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 |