httpd: fixed encoder plugin check
Check if encoder_plugin!=NULL, not encoder_plugin_get (which is a function).
This commit is contained in:
parent
3980245d1d
commit
91f3370913
@ -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_name = config_get_block_string(param, "encoder", "vorbis");
|
||||||
encoder_plugin = encoder_plugin_get(encoder_name);
|
encoder_plugin = encoder_plugin_get(encoder_name);
|
||||||
if (encoder_plugin_get == NULL) {
|
if (encoder_plugin == NULL) {
|
||||||
g_set_error(error, httpd_output_quark(), 0,
|
g_set_error(error, httpd_output_quark(), 0,
|
||||||
"No such encoder: %s", encoder_name);
|
"No such encoder: %s", encoder_name);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user