From ff626ac76357940b2f0ac5cb243a68ac13df0f8a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 19 Oct 2013 18:48:38 +0200 Subject: *: use references instead of pointers --- src/OutputAll.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/OutputAll.cxx') 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; } -- cgit v1.2.3