aboutsummaryrefslogtreecommitdiffstats
path: root/src/OutputAll.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-20 17:48:23 +0100
committerMax Kellermann <max@duempel.org>2013-01-20 17:48:23 +0100
commite1b03b4a716dbb35a737d34fba531e623f7980f3 (patch)
treeac2143b4b3122d594000a70b51ca29fb2c937307 /src/OutputAll.cxx
parente6ed592b8aeb5025be0893ee99ff44e46a9ffd1c (diff)
downloadmpd-e1b03b4a716dbb35a737d34fba531e623f7980f3.tar.gz
mpd-e1b03b4a716dbb35a737d34fba531e623f7980f3.tar.xz
mpd-e1b03b4a716dbb35a737d34fba531e623f7980f3.zip
PlayerControl: move functions into the class
Diffstat (limited to 'src/OutputAll.cxx')
-rw-r--r--src/OutputAll.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/OutputAll.cxx b/src/OutputAll.cxx
index a18a63385..4cdcc84e7 100644
--- a/src/OutputAll.cxx
+++ b/src/OutputAll.cxx
@@ -481,15 +481,15 @@ audio_output_all_check(void)
bool
audio_output_all_wait(struct player_control *pc, unsigned threshold)
{
- player_lock(pc);
+ pc->Lock();
if (audio_output_all_check() < threshold) {
- player_unlock(pc);
+ pc->Unlock();
return true;
}
- player_wait(pc);
- player_unlock(pc);
+ pc->Wait();
+ pc->Unlock();
return audio_output_all_check() < threshold;
}