From: Russell Bryant Date: Mon, 16 May 2005 03:10:20 +0000 (+0000) Subject: Remove double fout++ and comment on flag (bug #4267) X-Git-Tag: 1.0.11.1~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6125965ff5baef6803db82f93ffb8b4598e82823;p=thirdparty%2Fasterisk.git 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 --- 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;