diff options
author | Terry Wilson <twilson@digium.com> | 2012-02-24 00:32:20 +0000 |
---|---|---|
committer | Terry Wilson <twilson@digium.com> | 2012-02-24 00:32:20 +0000 |
commit | ebaf59a656ef94e19332c08e0d0562b8cbe59f65 (patch) | |
tree | 6e75fd13924808bddacc18e14d5e02975a322481 /channels/chan_local.c | |
parent | 235f88d12270b328ad466889189400666b3e56c1 (diff) |
Opaquification for ast_format structs in struct ast_channel
Review: https://reviewboard.asterisk.org/r/1770/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@356573 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_local.c')
-rw-r--r-- | channels/chan_local.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c index 6123e5484..550625656 100644 --- a/channels/chan_local.c +++ b/channels/chan_local.c @@ -1157,14 +1157,14 @@ static struct ast_channel *local_new(struct local_pvt *p, int state, const char /* Determine our read/write format and set it on each channel */ ast_best_codec(p->reqcap, &fmt); - ast_format_copy(&tmp->writeformat, &fmt); - ast_format_copy(&tmp2->writeformat, &fmt); - ast_format_copy(&tmp->rawwriteformat, &fmt); - ast_format_copy(&tmp2->rawwriteformat, &fmt); - ast_format_copy(&tmp->readformat, &fmt); - ast_format_copy(&tmp2->readformat, &fmt); - ast_format_copy(&tmp->rawreadformat, &fmt); - ast_format_copy(&tmp2->rawreadformat, &fmt); + ast_format_copy(ast_channel_writeformat(tmp), &fmt); + ast_format_copy(ast_channel_writeformat(tmp2), &fmt); + ast_format_copy(ast_channel_rawwriteformat(tmp), &fmt); + ast_format_copy(ast_channel_rawwriteformat(tmp2), &fmt); + ast_format_copy(ast_channel_readformat(tmp), &fmt); + ast_format_copy(ast_channel_readformat(tmp2), &fmt); + ast_format_copy(ast_channel_rawreadformat(tmp), &fmt); + ast_format_copy(ast_channel_rawreadformat(tmp2), &fmt); ast_channel_tech_pvt_set(tmp, p); ast_channel_tech_pvt_set(tmp2, p); |