summaryrefslogtreecommitdiff
path: root/res/res_calendar.c
diff options
context:
space:
mode:
authorTerry Wilson <twilson@digium.com>2012-02-24 00:32:20 +0000
committerTerry Wilson <twilson@digium.com>2012-02-24 00:32:20 +0000
commitebaf59a656ef94e19332c08e0d0562b8cbe59f65 (patch)
tree6e75fd13924808bddacc18e14d5e02975a322481 /res/res_calendar.c
parent235f88d12270b328ad466889189400666b3e56c1 (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 'res/res_calendar.c')
-rw-r--r--res/res_calendar.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/res/res_calendar.c b/res/res_calendar.c
index 4bcb2639b..5ddcaae07 100644
--- a/res/res_calendar.c
+++ b/res/res_calendar.c
@@ -746,12 +746,12 @@ static void *do_notify(void *data)
}
ast_channel_tech_set(chan, &null_tech);
- ast_format_set(&chan->writeformat, AST_FORMAT_SLINEAR, 0);
- ast_format_set(&chan->readformat, AST_FORMAT_SLINEAR, 0);
- ast_format_set(&chan->rawwriteformat, AST_FORMAT_SLINEAR, 0);
- ast_format_set(&chan->rawreadformat, AST_FORMAT_SLINEAR, 0);
+ ast_format_set(ast_channel_writeformat(chan), AST_FORMAT_SLINEAR, 0);
+ ast_format_set(ast_channel_readformat(chan), AST_FORMAT_SLINEAR, 0);
+ ast_format_set(ast_channel_rawwriteformat(chan), AST_FORMAT_SLINEAR, 0);
+ ast_format_set(ast_channel_rawreadformat(chan), AST_FORMAT_SLINEAR, 0);
/* clear native formats and set to slinear. write format is signlear so just use that to set it */
- ast_format_cap_set(ast_channel_nativeformats(chan), &chan->writeformat);
+ ast_format_cap_set(ast_channel_nativeformats(chan), ast_channel_writeformat(chan));
if (!(datastore = ast_datastore_alloc(&event_notification_datastore, NULL))) {
ast_log(LOG_ERROR, "Could not allocate datastore, notification not being sent!\n");