changeset 25650:da94a5973768

Make code slightly less confusing to me
author reimar
date Fri, 11 Jan 2008 20:55:08 +0000
parents 5cf7cb85128f
children 3d5fb36693ac
files libao2/ao_jack.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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