diff options
author | Max Kellermann <max@musicpd.org> | 2016-12-29 23:27:29 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-12-29 23:28:46 +0100 |
commit | 61a151c803b2794804a73b7810136b5f43940d04 (patch) | |
tree | f042921520ccdc690cf014bddc15c9f63d93641b | |
parent | 5149c950aaf57fc9b822fda49834c51d9f219e8b (diff) |
output/State: add missing mutex lock
-rw-r--r-- | src/output/OutputState.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/output/OutputState.cxx b/src/output/OutputState.cxx index 0c6855454..ca6d4de5f 100644 --- a/src/output/OutputState.cxx +++ b/src/output/OutputState.cxx @@ -43,6 +43,7 @@ audio_output_state_save(BufferedOutputStream &os, { for (unsigned i = 0, n = outputs.Size(); i != n; ++i) { const AudioOutput &ao = outputs.Get(i); + const ScopeLock lock(ao.mutex); os.Format(AUDIO_DEVICE_STATE "%d:%s\n", ao.enabled, ao.name); } |