aboutsummaryrefslogtreecommitdiffstats
path: root/src/OutputAll.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-19 18:48:38 +0200
committerMax Kellermann <max@duempel.org>2013-10-19 18:48:38 +0200
commitff626ac76357940b2f0ac5cb243a68ac13df0f8a (patch)
tree493888a28950f75f5e254c0ded9dc9703ee83dc3 /src/OutputAll.cxx
parent59f8144c50765189594d5932fc25869f9ea6e265 (diff)
downloadmpd-ff626ac76357940b2f0ac5cb243a68ac13df0f8a.tar.gz
mpd-ff626ac76357940b2f0ac5cb243a68ac13df0f8a.tar.xz
mpd-ff626ac76357940b2f0ac5cb243a68ac13df0f8a.zip
*: use references instead of pointers
Diffstat (limited to '')
-rw-r--r--src/OutputAll.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/OutputAll.cxx b/src/OutputAll.cxx
index 6f935ed44..15662f034 100644
--- a/src/OutputAll.cxx
+++ b/src/OutputAll.cxx
@@ -103,7 +103,7 @@ audio_output_config_count(void)
}
void
-audio_output_all_init(struct player_control *pc)
+audio_output_all_init(player_control &pc)
{
const struct config_param *param = nullptr;
unsigned int i;
@@ -469,17 +469,17 @@ audio_output_all_check(void)
}
bool
-audio_output_all_wait(struct player_control *pc, unsigned threshold)
+audio_output_all_wait(player_control &pc, unsigned threshold)
{
- pc->Lock();
+ pc.Lock();
if (audio_output_all_check() < threshold) {
- pc->Unlock();
+ pc.Unlock();
return true;
}
- pc->Wait();
- pc->Unlock();
+ pc.Wait();
+ pc.Unlock();
return audio_output_all_check() < threshold;
}