]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Remove double fout++ and comment on flag (bug #4267)
authorRussell Bryant <russell@russellbryant.com>
Mon, 16 May 2005 03:10:20 +0000 (03:10 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 16 May 2005 03:10:20 +0000 (03:10 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5695 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channel.c

index f88dcf73b316d93d1b209c6219a73a8faa8fdba5..10b88237754068ff8fbac35effbcf0ae6d3b4ebb 100755 (executable)
--- 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;