aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_all.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-07 17:22:34 +0100
committerMax Kellermann <max@duempel.org>2009-11-07 17:22:34 +0100
commitec25cda68bf4f71de24c067775660781d885843c (patch)
tree2f400e38481e06830a67714824d067aeaa870c49 /src/output_all.c
parentc9f726048c48f5827edf2f03bf898633d119c379 (diff)
downloadmpd-ec25cda68bf4f71de24c067775660781d885843c.tar.gz
mpd-ec25cda68bf4f71de24c067775660781d885843c.tar.xz
mpd-ec25cda68bf4f71de24c067775660781d885843c.zip
output_all: automatically attempt to re-enable failed outputs
When an output's enable() method has failed, and playback starts, retry to enable it. Without this, the user may be confused, because he sees the device is "enabled" but cannot use it, and currently there is no error message in the log.
Diffstat (limited to 'src/output_all.c')
-rw-r--r--src/output_all.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/output_all.c b/src/output_all.c
index 7c411f14f..5b7cc4908 100644
--- a/src/output_all.c
+++ b/src/output_all.c
@@ -327,6 +327,7 @@ audio_output_all_open(const struct audio_format *audio_format,
input_audio_format = *audio_format;
audio_output_all_reset_reopen();
+ audio_output_all_enable_disable();
audio_output_all_update();
for (i = 0; i < num_audio_outputs; ++i) {