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_oss.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_oss.c')
-rw-r--r-- | channels/chan_oss.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_oss.c b/channels/chan_oss.c index 2d7cda82a..47a995842 100644 --- a/channels/chan_oss.c +++ b/channels/chan_oss.c @@ -797,9 +797,9 @@ static struct ast_channel *oss_new(struct chan_oss_pvt *o, char *ext, char *ctx, setformat(o, O_RDWR); ast_channel_set_fd(c, 0, o->sounddev); /* -1 if device closed, override later */ - ast_format_set(&c->readformat, AST_FORMAT_SLINEAR, 0); - ast_format_set(&c->writeformat, AST_FORMAT_SLINEAR, 0); - ast_format_cap_add(ast_channel_nativeformats(c), &c->readformat); + ast_format_set(ast_channel_readformat(c), AST_FORMAT_SLINEAR, 0); + ast_format_set(ast_channel_writeformat(c), AST_FORMAT_SLINEAR, 0); + ast_format_cap_add(ast_channel_nativeformats(c), ast_channel_readformat(c)); /* if the console makes the call, add video to the offer */ /* if (state == AST_STATE_RINGING) TODO XXX CONSOLE VIDEO IS DISABLED UNTIL IT GETS A MAINTAINER |