mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Merge "translate: explicit format destination not properly set"
This commit is contained in:
@@ -494,7 +494,7 @@ struct ast_trans_pvt *ast_translator_build_path(struct ast_format *dst, struct a
|
|||||||
AST_RWLIST_UNLOCK(&translators);
|
AST_RWLIST_UNLOCK(&translators);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if ((t->dst_codec.sample_rate == ast_format_get_sample_rate(dst)) && (t->dst_codec.type == ast_format_get_type(dst)) && (!strcmp(t->dst_codec.name, ast_format_get_name(dst)))) {
|
if ((t->dst_codec.sample_rate == ast_format_get_sample_rate(dst)) && (t->dst_codec.type == ast_format_get_type(dst))) {
|
||||||
explicit_dst = dst;
|
explicit_dst = dst;
|
||||||
}
|
}
|
||||||
if (!(cur = newpvt(t, explicit_dst))) {
|
if (!(cur = newpvt(t, explicit_dst))) {
|
||||||
|
Reference in New Issue
Block a user