diff --git a/src/output/MultipleOutputs.cxx b/src/output/MultipleOutputs.cxx index 3d0e13816..10b918d30 100644 --- a/src/output/MultipleOutputs.cxx +++ b/src/output/MultipleOutputs.cxx @@ -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;