mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 15:49:56 +00:00
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
This commit is contained in:
@@ -572,9 +572,9 @@ static struct ast_channel *alsa_new(struct chan_alsa_pvt *p, int state, const ch
|
||||
|
||||
ast_channel_tech_set(tmp, &alsa_tech);
|
||||
ast_channel_set_fd(tmp, 0, readdev);
|
||||
ast_format_set(&tmp->readformat, AST_FORMAT_SLINEAR, 0);
|
||||
ast_format_set(&tmp->writeformat, AST_FORMAT_SLINEAR, 0);
|
||||
ast_format_cap_add(ast_channel_nativeformats(tmp), &tmp->writeformat);
|
||||
ast_format_set(ast_channel_readformat(tmp), AST_FORMAT_SLINEAR, 0);
|
||||
ast_format_set(ast_channel_writeformat(tmp), AST_FORMAT_SLINEAR, 0);
|
||||
ast_format_cap_add(ast_channel_nativeformats(tmp), ast_channel_writeformat(tmp));
|
||||
|
||||
ast_channel_tech_pvt_set(tmp, p);
|
||||
if (!ast_strlen_zero(p->context))
|
||||
|
||||
Reference in New Issue
Block a user