diff options
author | Max Kellermann <max@duempel.org> | 2013-01-20 17:48:23 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-20 17:48:23 +0100 |
commit | e1b03b4a716dbb35a737d34fba531e623f7980f3 (patch) | |
tree | ac2143b4b3122d594000a70b51ca29fb2c937307 /src/OutputAll.cxx | |
parent | e6ed592b8aeb5025be0893ee99ff44e46a9ffd1c (diff) | |
download | mpd-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.cxx | 8 |
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; } |