Commit cfedc6e9 authored by Max Kellermann's avatar Max Kellermann

output/openal: remove bogus format check from _open()

The expression "!format" does not make sense, and cannot occur.
parent b66d7f7e
...@@ -160,14 +160,6 @@ openal_open(struct audio_output *ao, struct audio_format *audio_format, ...@@ -160,14 +160,6 @@ openal_open(struct audio_output *ao, struct audio_format *audio_format,
od->format = openal_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: %s",
audio_format_to_string(audio_format, &s));
return false;
}
if (!openal_setup_context(od, error)) { if (!openal_setup_context(od, error)) {
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment