MT#61856 main: properly log failure in `do_transcode_config()`

When failing to read the transcode config
for the destiantion codec, log accordingly the destination codec,
not the source one.

Change-Id: I1211cde6e1d055169e809e8a49c6f88b0028e3ec
mr26.1
Donat Zenichev 4 weeks ago
parent 5c01cfd85e
commit bb2139e3dc

@ -499,7 +499,7 @@ static void do_transcode_config(const char *name, charp_ht ht, struct transcode_
if (!codec_parse_payload_type(&tc->i.src, STR_PTR(tc->src)))
die("Failed to parse source codec '%s' in transcode config '%s'", src, name);
if (!codec_parse_payload_type(&tc->i.dst, STR_PTR(tc->dst)))
die("Failed to parse source codec '%s' in transcode config '%s'", src, name);
die("Failed to parse destination codec '%s' in transcode config '%s'", dst, name);
char *tfm = t_hash_table_lookup(ht, "transform");
char *pref_s = t_hash_table_lookup(ht, "preference");

Loading…
Cancel
Save