From b13cd03f756db4afe3fd719e551801cd632a596b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 7 Mar 2009 19:55:57 +0100 Subject: output_all: audio_output_all_update() returns bool audio_output_all_update() returns true when there is at least open output device which is open. --- src/output_control.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/output_control.c') diff --git a/src/output_control.c b/src/output_control.c index c2b7c56d4..a9c41f053 100644 --- a/src/output_control.c +++ b/src/output_control.c @@ -94,16 +94,18 @@ audio_output_open(struct audio_output *ao, return ao->open; } -void +bool audio_output_update(struct audio_output *ao, const struct audio_format *audio_format) { if (ao->enabled) { if (ao->fail_timer == NULL || g_timer_elapsed(ao->fail_timer, NULL) > REOPEN_AFTER) - audio_output_open(ao, audio_format); + return audio_output_open(ao, audio_format); } else if (audio_output_is_open(ao)) audio_output_close(ao); + + return false; } void -- cgit v1.2.3