diff options
author | Max Kellermann <max@duempel.org> | 2011-12-13 21:23:15 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-12-13 21:58:09 +0100 |
commit | cfedc6e9b4b309a6e7e48c0ebc9807cf25a4a4b5 (patch) | |
tree | b27d36416ee752f3b6a28dad7a142ac98d57d4df /src/output/openal_output_plugin.c | |
parent | b66d7f7e0b551b8dba9a7811a0c25cdfa8fea6f7 (diff) | |
download | mpd-cfedc6e9b4b309a6e7e48c0ebc9807cf25a4a4b5.tar.gz mpd-cfedc6e9b4b309a6e7e48c0ebc9807cf25a4a4b5.tar.xz mpd-cfedc6e9b4b309a6e7e48c0ebc9807cf25a4a4b5.zip |
output/openal: remove bogus format check from _open()
The expression "!format" does not make sense, and cannot occur.
Diffstat (limited to '')
-rw-r--r-- | src/output/openal_output_plugin.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/output/openal_output_plugin.c b/src/output/openal_output_plugin.c index 0b98dae84..d5689bbad 100644 --- a/src/output/openal_output_plugin.c +++ b/src/output/openal_output_plugin.c @@ -160,14 +160,6 @@ openal_open(struct audio_output *ao, 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: %s", - audio_format_to_string(audio_format, &s)); - return false; - } - if (!openal_setup_context(od, error)) { return false; } |