Remove double fout++ and comment on flag (bug #4267)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5695 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2005-05-16 03:10:20 +00:00
parent a6cea6892b
commit 6125965ff5

View File

@@ -1397,6 +1397,7 @@ struct ast_frame *ast_read(struct ast_channel *chan)
ast_settimeout(chan, 160, generator_force, chan);
}
}
/* High bit prints debugging */
if (chan->fin & 0x80000000)
ast_frame_dump(chan->name, f, "<<");
if ((chan->fin & 0x7fffffff) == 0x7fffffff)
@@ -1601,6 +1602,7 @@ int ast_write(struct ast_channel *chan, struct ast_frame *fr)
return 0;
}
}
/* High bit prints debugging */
if (chan->fout & 0x80000000)
ast_frame_dump(chan->name, fr, ">>");
CHECK_BLOCKING(chan);
@@ -1681,7 +1683,6 @@ int ast_write(struct ast_channel *chan, struct ast_frame *fr)
chan->fout &= 0x80000000;
else
chan->fout++;
chan->fout++;
}
ast_mutex_unlock(&chan->lock);
return res;