diff options
author | Mark Spencer <markster@digium.com> | 2004-03-27 06:50:12 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-03-27 06:50:12 +0000 |
commit | eeb2ca5b26dfb3d47fa9676f1ef35fff64d3aaeb (patch) | |
tree | 8787e6295801bf6156269a895cc43bd31aaab412 /app.c | |
parent | 4b4c55e32874a1d6f0868bf80f5462636711078f (diff) |
Make read/write mode have a lock parameter and use it properly.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2572 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'app.c')
-rwxr-xr-x | app.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -86,7 +86,7 @@ int ast_app_getvoice(struct ast_channel *c, char *dest, char *dstfmt, char *prom return res; } rfmt = c->readformat; - res = ast_set_read_format(c, AST_FORMAT_SLINEAR); + res = ast_set_read_format(c, AST_FORMAT_SLINEAR, 1); if (res < 0) { ast_log(LOG_WARNING, "Unable to set to linear mode, giving up\n"); return -1; @@ -135,7 +135,7 @@ int ast_app_getvoice(struct ast_channel *c, char *dest, char *dstfmt, char *prom ast_frfree(f); } } - res = ast_set_read_format(c, rfmt); + res = ast_set_read_format(c, rfmt, 1); if (res) ast_log(LOG_WARNING, "Unable to restore read format on '%s'\n", c->name); ast_dsp_free(sildet); |