diff options
author | Max Kellermann <max@duempel.org> | 2008-11-25 16:18:06 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-25 16:18:06 +0100 |
commit | c570aa20faf7d0b747e8509390dc8580f91581d4 (patch) | |
tree | 617725f83a117c05208e549ec9b2c152defb6fbb /src | |
parent | 423276a38431a9057ea188ddf170305288098220 (diff) | |
download | mpd-c570aa20faf7d0b747e8509390dc8580f91581d4.tar.gz mpd-c570aa20faf7d0b747e8509390dc8580f91581d4.tar.xz mpd-c570aa20faf7d0b747e8509390dc8580f91581d4.zip |
ao: print error message when ao_open_live() fails
When ao_open_live() failed, MPD would ignore the error code in
"errno". Make it print a meaningful error message.
Diffstat (limited to '')
-rw-r--r-- | src/output/ao_plugin.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/output/ao_plugin.c b/src/output/ao_plugin.c index b3819a1d8..3907448ae 100644 --- a/src/output/ao_plugin.c +++ b/src/output/ao_plugin.c @@ -208,8 +208,10 @@ audioOutputAo_openDevice(void *data, struct audio_format *audio_format) ad->device = ao_open_live(ad->driverId, &format, ad->options); - if (ad->device == NULL) + if (ad->device == NULL) { + audioOutputAo_error("Failed to open libao"); return false; + } return true; } |