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.
This commit is contained in:
Max Kellermann
2009-03-26 19:46:39 +01:00
parent 1fcf09a816
commit 69759b573f
3 changed files with 13 additions and 2 deletions

View File

@@ -28,4 +28,5 @@ mixer_init(struct mixer *mixer, const struct mixer_plugin *plugin)
mixer->plugin = plugin;
mixer->mutex = g_mutex_new();
mixer->open = false;
mixer->failed = false;
}