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:
parent
fc6d836a2d
commit
27193d8402
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user