Commit 27193d84 authored by Max Kellermann's avatar Max Kellermann

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".
parent fc6d836a
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment