output/Internal: move the Mutex to struct AudioOutputControl

struct AudioOutput should not know or care about multi-threading.
This commit is contained in:
Max Kellermann
2017-06-08 22:23:26 +02:00
parent 546b773b21
commit 27d68d8fdd
6 changed files with 9 additions and 10 deletions

View File

@@ -480,7 +480,7 @@ AudioOutputControl::Task()
if (command == Command::NONE) {
woken_for_play = false;
cond.wait(output->mutex);
cond.wait(mutex);
}
}
}