diff options
author | Max Kellermann <max@duempel.org> | 2011-09-01 07:53:42 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-09-01 07:59:15 +0200 |
commit | 2be6184c8d274a5b99cc2c8c86a7aebe46187320 (patch) | |
tree | 6fcf33a16b29b842a96c0861f7c0a640ae55b196 /src/output_control.c | |
parent | 8b0b4ff0860ea93850c2f44e72e8a8a5de05e13b (diff) | |
download | mpd-2be6184c8d274a5b99cc2c8c86a7aebe46187320.tar.gz mpd-2be6184c8d274a5b99cc2c8c86a7aebe46187320.tar.xz mpd-2be6184c8d274a5b99cc2c8c86a7aebe46187320.zip |
output_all: move _lock_signal() to output_control.c
Better name, better documentation.
Diffstat (limited to '')
-rw-r--r-- | src/output_control.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/output_control.c b/src/output_control.c index 14976dbfb..f8c5cd873 100644 --- a/src/output_control.c +++ b/src/output_control.c @@ -268,6 +268,18 @@ void audio_output_cancel(struct audio_output *ao) } void +audio_output_allow_play(struct audio_output *ao) +{ + g_mutex_lock(ao->mutex); + + ao->allow_play = true; + if (audio_output_is_open(ao)) + g_cond_signal(ao->cond); + + g_mutex_unlock(ao->mutex); +} + +void audio_output_release(struct audio_output *ao) { if (ao->always_on) |