mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Big diet for struct ast_channel
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4399 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3995,7 +3995,7 @@ struct ast_frame *zt_read(struct ast_channel *ast)
|
||||
readbuf = ((unsigned char *)p->subs[index].buffer) + AST_FRIENDLY_OFFSET;
|
||||
CHECK_BLOCKING(ast);
|
||||
res = read(p->subs[index].zfd, readbuf, p->subs[index].linear ? READ_SIZE * 2 : READ_SIZE);
|
||||
ast->blocking = 0;
|
||||
ast_clear_flag(ast, AST_FLAG_BLOCKING);
|
||||
/* Check for hangup */
|
||||
if (res < 0) {
|
||||
f = NULL;
|
||||
@@ -4172,7 +4172,7 @@ struct ast_frame *zt_read(struct ast_channel *ast)
|
||||
|
||||
/* If we have a fake_event, trigger exception to handle it */
|
||||
if (p->fake_event)
|
||||
ast->exception = 1;
|
||||
ast_set_flag(ast, AST_FLAG_EXCEPTION);
|
||||
|
||||
ast_mutex_unlock(&p->lock);
|
||||
return f;
|
||||
|
Reference in New Issue
Block a user