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_console.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_console.c')
-rw-r--r-- | channels/chan_console.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_console.c b/channels/chan_console.c index a47f89826..02fca590c 100644 --- a/channels/chan_console.c +++ b/channels/chan_console.c @@ -420,9 +420,9 @@ static struct ast_channel *console_new(struct console_pvt *pvt, const char *ext, } ast_channel_tech_set(chan, &console_tech); - ast_format_set(&chan->readformat, AST_FORMAT_SLINEAR16, 0); - ast_format_set(&chan->writeformat, AST_FORMAT_SLINEAR16, 0); - ast_format_cap_add(ast_channel_nativeformats(chan), &chan->readformat); + ast_format_set(ast_channel_readformat(chan), AST_FORMAT_SLINEAR16, 0); + ast_format_set(ast_channel_writeformat(chan), AST_FORMAT_SLINEAR16, 0); + ast_format_cap_add(ast_channel_nativeformats(chan), ast_channel_readformat(chan)); ast_channel_tech_pvt_set(chan, ref_pvt(pvt)); pvt->owner = chan; |