httpd: fixed encoder plugin check

Check if encoder_plugin!=NULL, not encoder_plugin_get (which is a
function).
This commit is contained in:
Jeffrey Middleton 2009-03-17 06:52:23 +01:00 committed by Max Kellermann
parent 3980245d1d
commit 91f3370913

View File

@ -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;