mirror of
https://github.com/mpv-player/mpv
synced 2024-12-29 10:32:15 +00:00
Make code slightly less confusing to me
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25678 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c9f2fed145
commit
8c38419374
@ -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");
|
mp_msg(MSGT_AO, MSGL_FATAL, "[JACK] no physical ports available\n");
|
||||||
goto err_out;
|
goto err_out;
|
||||||
}
|
}
|
||||||
num_ports = 1;
|
i = 1;
|
||||||
while (matching_ports[num_ports]) num_ports++;
|
while (matching_ports[i]) i++;
|
||||||
if (channels > num_ports) channels = num_ports;
|
if (channels > i) channels = i;
|
||||||
num_ports = channels;
|
num_ports = channels;
|
||||||
|
|
||||||
// create out output ports
|
// create out output ports
|
||||||
|
Loading…
Reference in New Issue
Block a user