summaryrefslogtreecommitdiff
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-12-29 23:24:49 +0100
committerMax Kellermann <max@musicpd.org>2016-12-29 23:28:46 +0100
commit5149c950aaf57fc9b822fda49834c51d9f219e8b (patch)
tree75e8a6128b2e60fc1a3ac0120810c9705fba47bb /src/output
parent18f4d846c993ae24abbdfadd85ddba23e1087709 (diff)
output/Multiple: add missing mutex lock
Diffstat (limited to 'src/output')
-rw-r--r--src/output/MultipleOutputs.cxx2
1 files changed, 2 insertions, 0 deletions
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;