summaryrefslogtreecommitdiff
path: root/src/output/Thread.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-06-08 22:23:26 +0200
committerMax Kellermann <max@musicpd.org>2017-08-07 17:44:46 +0200
commit27d68d8fdd0cdf0cf24cc78e12319cda2db438fb (patch)
tree2852862001a81da90ce5219b55941c1376b54f44 /src/output/Thread.cxx
parent546b773b2127a7174fe8afab4a91ef18ef69f5ca (diff)
output/Internal: move the Mutex to struct AudioOutputControl
struct AudioOutput should not know or care about multi-threading.
Diffstat (limited to 'src/output/Thread.cxx')
-rw-r--r--src/output/Thread.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output/Thread.cxx b/src/output/Thread.cxx
index 70608809a..fa337b858 100644
--- a/src/output/Thread.cxx
+++ b/src/output/Thread.cxx
@@ -480,7 +480,7 @@ AudioOutputControl::Task()
if (command == Command::NONE) {
woken_for_play = false;
- cond.wait(output->mutex);
+ cond.wait(mutex);
}
}
}