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_vpb.cc | |
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_vpb.cc')
-rw-r--r-- | channels/chan_vpb.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_vpb.cc b/channels/chan_vpb.cc index 551738d37..4055fc5b5 100644 --- a/channels/chan_vpb.cc +++ b/channels/chan_vpb.cc @@ -2320,7 +2320,7 @@ static void *do_chanreads(void *pvt) ast_mutex_unlock(&p->play_dtmf_lock); if (p->owner) { - ast_format_copy(&tmpfmt, &p->owner->rawreadformat); + ast_format_copy(&tmpfmt, ast_channel_rawreadformat(p->owner)); } else { ast_format_set(&tmpfmt, AST_FORMAT_SLINEAR, 0); } @@ -2458,8 +2458,8 @@ static struct ast_channel *vpb_new(struct vpb_pvt *me, enum ast_channel_state st * linear since we can then adjust volume in this modules. */ ast_format_cap_add(ast_channel_nativeformats(tmp), ast_format_set(&tmpfmt, AST_FORMAT_SLINEAR, 0)); - ast_format_copy(&tmp->rawreadformat, &tmpfmt); - ast_format_copy(&tmp->rawwriteformat, &tmpfmt); + ast_format_copy(ast_channel_rawreadformat(tmp), &tmpfmt); + ast_format_copy(ast_channel_rawwriteformat(tmp), &tmpfmt); if (state == AST_STATE_RING) { ast_channel_rings_set(tmp, 1); cid_name[0] = '\0'; |