aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-05-16 03:10:20 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-05-16 03:10:20 +0000
commit83aefe460e575b1d74b328e2b59caaad49479006 (patch)
tree72a29bc93546d1eecf0cfff3eea304e7cffdbe2b
parent71cd78c2e96d79c8392cf8f8320406f661ed30b8 (diff)
Remove double fout++ and comment on flag (bug #4267)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/v1-0@5695 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xchannel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/channel.c b/channel.c
index f88dcf73b..10b882377 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;