From 81643ec9c3977e64b153c0227aac4fb98cabec7a Mon Sep 17 00:00:00 2001 From: Mark Spencer <markster@digium.com> Date: Sat, 14 May 2005 23:26:37 +0000 Subject: [PATCH] Remove double fout++ and comment on flag (bug #4267) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5649 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/channel.c b/channel.c index 4e9b9320ad..27aefe174e 100755 --- a/channel.c +++ b/channel.c @@ -1520,6 +1520,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) @@ -1729,6 +1730,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); @@ -1817,7 +1819,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; -- GitLab