diff options
author | Jeffrey Middleton <jefromi@gmail.com> | 2009-03-17 06:52:23 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-03-17 06:52:23 +0100 |
commit | 91f33709135bca4c050b0df1963c8d8bd98b3154 (patch) | |
tree | 1580fd68e783b4f34aec28c516e9aaa2d5011850 | |
parent | 3980245d1dc0419ee5ec49944d515d4ca9470c72 (diff) | |
download | mpd-91f33709135bca4c050b0df1963c8d8bd98b3154.tar.gz mpd-91f33709135bca4c050b0df1963c8d8bd98b3154.tar.xz mpd-91f33709135bca4c050b0df1963c8d8bd98b3154.zip |
httpd: fixed encoder plugin check
Check if encoder_plugin!=NULL, not encoder_plugin_get (which is a
function).
-rw-r--r-- | src/output/httpd_output_plugin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output/httpd_output_plugin.c b/src/output/httpd_output_plugin.c index 61591af2c..96491c430 100644 --- a/src/output/httpd_output_plugin.c +++ b/src/output/httpd_output_plugin.c @@ -61,7 +61,7 @@ httpd_output_init(G_GNUC_UNUSED const struct audio_format *audio_format, encoder_name = config_get_block_string(param, "encoder", "vorbis"); encoder_plugin = encoder_plugin_get(encoder_name); - if (encoder_plugin_get == NULL) { + if (encoder_plugin == NULL) { g_set_error(error, httpd_output_quark(), 0, "No such encoder: %s", encoder_name); return NULL; |