mirror of
https://gitlab.xiph.org/xiph/ezstream.git
synced 2025-02-02 15:07:45 -05:00
Try to find encoder instead of creating one on the fly
Fixes a segfault when there is a typo in the <encoder /> setting.
This commit is contained in:
parent
d4f488a88d
commit
a59d29ee78
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user