diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2006-04-17 16:43:55 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2006-04-17 16:43:55 +0000 |
commit | fc071a182be6e7cd838bebec769b24dd60faee2c (patch) | |
tree | e351551b781119f84ef18e008f2d08a61bb13a60 /channel.c | |
parent | 2229586d7197040bcb170d02ea02f10325a0ae6b (diff) |
actually return the number steps... not the number of steps minus 1
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20964 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channel.c')
-rw-r--r-- | channel.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -2746,7 +2746,8 @@ int ast_channel_make_compatible(struct ast_channel *chan, struct ast_channel *pe transcoding is needed; if desired, force transcode path to use SLINEAR between channels, but only if there is no direct conversion available */ - if ((src != dst) && ast_opt_transcode_via_slin && ast_translate_path_steps(dst, src)) + if ((src != dst) && ast_opt_transcode_via_slin && + (ast_translate_path_steps(dst, src) != 1)) dst = AST_FORMAT_SLINEAR; if (ast_set_read_format(chan, dst) < 0) { ast_log(LOG_WARNING, "Unable to set read format on channel %s to %d\n", chan->name, dst); @@ -2769,7 +2770,8 @@ int ast_channel_make_compatible(struct ast_channel *chan, struct ast_channel *pe transcoding is needed; if desired, force transcode path to use SLINEAR between channels, but only if there is no direct conversion available */ - if ((src != dst) && ast_opt_transcode_via_slin && ast_translate_path_steps(dst, src)) + if ((src != dst) && ast_opt_transcode_via_slin && + (ast_translate_path_steps(dst, src) != 1)) dst = AST_FORMAT_SLINEAR; if (ast_set_read_format(peer, dst) < 0) { ast_log(LOG_WARNING, "Unable to set read format on channel %s to %d\n", peer->name, dst); |