Commit 61a151c8 authored by Max Kellermann's avatar Max Kellermann

output/State: add missing mutex lock

parent 5149c950
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment