From 6125965ff5baef6803db82f93ffb8b4598e82823 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Mon, 16 May 2005 03:10:20 +0000 Subject: [PATCH] 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 --- channel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/channel.c b/channel.c index f88dcf73b3..10b8823775 100755 --- a/channel.c +++ b/channel.c @@ -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; -- 2.47.2