diff options
author | Max Kellermann <max@duempel.org> | 2008-09-24 07:20:37 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-24 07:20:37 +0200 |
commit | 63fb1efb5cd6665b73ced155ba89a5c7f094d9ab (patch) | |
tree | 041dc886425590f7700c0c9de69eaacc82c1de85 /src/output_api.c | |
parent | 3be5db04308d2fb233b33a82089cd9afacf68cc9 (diff) | |
download | mpd-63fb1efb5cd6665b73ced155ba89a5c7f094d9ab.tar.gz mpd-63fb1efb5cd6665b73ced155ba89a5c7f094d9ab.tar.xz mpd-63fb1efb5cd6665b73ced155ba89a5c7f094d9ab.zip |
output: added audio_output_closed()
The JACK output plugin needs to reset its "opened" flag when the JACK
server fails. To prevent it from accessing the audio_output struct
directly introduce the API function audio_output_closed().
Diffstat (limited to '')
-rw-r--r-- | src/output_api.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/output_api.c b/src/output_api.c index e9ac1be06..eabc0bb80 100644 --- a/src/output_api.c +++ b/src/output_api.c @@ -22,3 +22,11 @@ const char *audio_output_get_name(const struct audio_output *ao) { return ao->name; } + +void audio_output_closed(struct audio_output *ao) +{ + assert(ao->open); + + ao->open = 0; +} + |