aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-05-14 23:26:37 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-05-14 23:26:37 +0000
commit65a88a4140ba9a37f230b9b22ed81d07345bd22a (patch)
treedc008c31350cc24b1accff5f27519a0576bff693 /channel.c
parent5126f2d6e01ce5b3601635581c6c45fa5b513766 (diff)
Remove double fout++ and comment on flag (bug #4267)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5649 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/channel.c b/channel.c
index 4e9b9320a..27aefe174 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;