summaryrefslogtreecommitdiff
path: root/channels/chan_vpb.cc
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_vpb.cc')
-rw-r--r--channels/chan_vpb.cc6
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';