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
1 changed files with 2 additions and 2 deletions

View File

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