output/openal: use audio_format_to_string()
This commit is contained in:
parent
5d1e5f4ea0
commit
39404725f0
|
@ -156,10 +156,10 @@ openal_open(void *data, struct audio_format *audio_format,
|
||||||
od->format = openal_audio_format(audio_format);
|
od->format = openal_audio_format(audio_format);
|
||||||
|
|
||||||
if (!od->format) {
|
if (!od->format) {
|
||||||
|
struct audio_format_string s;
|
||||||
g_set_error(error, openal_output_quark(), 0,
|
g_set_error(error, openal_output_quark(), 0,
|
||||||
"Unsupported audio format (%i channels, %i bps)",
|
"Unsupported audio format: %s",
|
||||||
audio_format->channels,
|
audio_format_to_string(audio_format, &s));
|
||||||
audio_format->bits);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue