output_all: fix boolean short circuit in update()

Sometimes, audio_output_update() isn't called for the second device
when the first one has succeeded.  The patch
"audio_output_all_update() returns bool" broke it, because the boolean
evaluation ended after the first "true".
This commit is contained in:
Max Kellermann 2009-03-07 23:48:28 +01:00
parent fc6d836a2d
commit 27193d8402

View File

@ -178,8 +178,8 @@ audio_output_all_update(void)
return false; return false;
for (i = 0; i < num_audio_outputs; ++i) for (i = 0; i < num_audio_outputs; ++i)
ret = ret || audio_output_update(&audio_outputs[i], ret = audio_output_update(&audio_outputs[i],
&input_audio_format); &input_audio_format) || ret;
return ret; return ret;
} }