output/Multiple: add missing mutex lock

This commit is contained in:
Max Kellermann 2016-12-29 23:24:49 +01:00
parent 18f4d846c9
commit 5149c950aa

View File

@ -215,6 +215,8 @@ MultipleOutputs::Open(const AudioFormat audio_format,
std::exception_ptr first_error;
for (auto ao : outputs) {
const ScopeLock lock(ao->mutex);
if (ao->enabled)
enabled = true;