Commit a59d29ee authored by Moritz Grimm's avatar Moritz Grimm
Browse files

Try to find encoder instead of creating one on the fly

Fixes a segfault when there is a typo in the <encoder /> setting.
parent d4f488a8
......@@ -110,7 +110,7 @@ _build_reencode_cmd(const char *extension, const char *filename,
filename, extension);
return (NULL);
}
encoder = cfg_encoder_list_get(cfg_get_encoders(),
encoder = cfg_encoder_list_find(cfg_get_encoders(),
cfg_stream_get_encoder(cfg_stream));
if (!encoder) {
log_error("cannot encode: %s: unknown encoder",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment