aboutsummaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-15 16:20:20 +0100
committerMax Kellermann <max@duempel.org>2009-11-15 16:20:20 +0100
commit39404725f05222706196c6faeaee841b999f9dfb (patch)
tree3eeaade06305915862524f81b4ce4326da85ce60 /src/output
parent5d1e5f4ea0eb49838a486b42692d3b44592f2e75 (diff)
downloadmpd-39404725f05222706196c6faeaee841b999f9dfb.tar.gz
mpd-39404725f05222706196c6faeaee841b999f9dfb.tar.xz
mpd-39404725f05222706196c6faeaee841b999f9dfb.zip
output/openal: use audio_format_to_string()
Diffstat (limited to 'src/output')
-rw-r--r--src/output/openal_plugin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/output/openal_plugin.c b/src/output/openal_plugin.c
index 95337cb10..8fda110e1 100644
--- a/src/output/openal_plugin.c
+++ b/src/output/openal_plugin.c
@@ -156,10 +156,10 @@ openal_open(void *data, struct audio_format *audio_format,
od->format = openal_audio_format(audio_format);
if (!od->format) {
+ struct audio_format_string s;
g_set_error(error, openal_output_quark(), 0,
- "Unsupported audio format (%i channels, %i bps)",
- audio_format->channels,
- audio_format->bits);
+ "Unsupported audio format: %s",
+ audio_format_to_string(audio_format, &s));
return false;
}