From 91f33709135bca4c050b0df1963c8d8bd98b3154 Mon Sep 17 00:00:00 2001 From: Jeffrey Middleton Date: Tue, 17 Mar 2009 06:52:23 +0100 Subject: httpd: fixed encoder plugin check Check if encoder_plugin!=NULL, not encoder_plugin_get (which is a function). --- src/output/httpd_output_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3