[MPlayer-cvslog] r25678 - trunk/libao2/ao_jack.c
reimar
subversion at mplayerhq.hu
Fri Jan 11 21:55:09 CET 2008
Author: reimar
Date: Fri Jan 11 21:55:08 2008
New Revision: 25678
Log:
Make code slightly less confusing to me
Modified:
trunk/libao2/ao_jack.c
Modified: trunk/libao2/ao_jack.c
==============================================================================
--- trunk/libao2/ao_jack.c (original)
+++ trunk/libao2/ao_jack.c Fri Jan 11 21:55:08 2008
@@ -258,9 +258,9 @@ static int init(int rate, int channels,
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
More information about the MPlayer-cvslog
mailing list