aboutsummaryrefslogtreecommitdiffstats
path: root/src/OutputAll.cxx
diff options
context:
space:
mode:
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;
}