From 5149c950aaf57fc9b822fda49834c51d9f219e8b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 29 Dec 2016 23:24:49 +0100 Subject: [PATCH] output/Multiple: add missing mutex lock --- src/output/MultipleOutputs.cxx | 2 ++ 1 file changed, 2 insertions(+) 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;