diff options
author | Max Kellermann <max@duempel.org> | 2009-03-26 19:46:39 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-03-26 19:46:39 +0100 |
commit | 69759b573f549857daef8789741903a03f8e9b22 (patch) | |
tree | 8149c37bfabeeb8422237175c062aa5267faa177 /src/mixer_api.h | |
parent | 1fcf09a816977db8e12e4534d7c4ced5c053f0de (diff) | |
download | mpd-69759b573f549857daef8789741903a03f8e9b22.tar.gz mpd-69759b573f549857daef8789741903a03f8e9b22.tar.xz mpd-69759b573f549857daef8789741903a03f8e9b22.zip |
mixer: don't reopen failed mixer automatically
If a (global) mixer has been closed due to failure, don't reopen it
with every volume get/set. Leave it closed until it is explicitly
opened.
Diffstat (limited to 'src/mixer_api.h')
-rw-r--r-- | src/mixer_api.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mixer_api.h b/src/mixer_api.h index 344d04453..fe27f5119 100644 --- a/src/mixer_api.h +++ b/src/mixer_api.h @@ -38,6 +38,12 @@ struct mixer { * Is the mixer device currently open? */ bool open; + + /** + * Has this mixer failed, and should not be reopened + * automatically? + */ + bool failed; }; void |