diff options
Diffstat (limited to 'apps/app_ices.c')
-rw-r--r-- | apps/app_ices.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_ices.c b/apps/app_ices.c index 13b27fe25..8a57860b4 100644 --- a/apps/app_ices.c +++ b/apps/app_ices.c @@ -145,7 +145,7 @@ static int ices_exec(struct ast_channel *chan, const char *data) return -1; } - ast_format_copy(&oreadformat, &chan->readformat); + ast_format_copy(&oreadformat, ast_channel_readformat(chan)); res = ast_set_read_format_by_id(chan, AST_FORMAT_SLINEAR); if (res < 0) { close(fds[0]); |