aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-09 07:51:55 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-09 07:51:55 +0000
commitb31042ff8d20c0513afbae6699188ca47a30a4f1 (patch)
tree2ea0c399f1509b365f553b0de66be1647373203e /channel.c
parent909bd6a98cc5a1d24832ef733ccf41862e6ef880 (diff)
mark a couple of dubious pieces of code
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25894 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rw-r--r--channel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channel.c b/channel.c
index 800ad847d..1d278b648 100644
--- a/channel.c
+++ b/channel.c
@@ -1904,6 +1904,7 @@ static struct ast_frame *__ast_read(struct ast_channel *chan, int dropaudio)
chan->readq = f->next;
f->next = NULL;
/* Interpret hangup and return NULL */
+ /* XXX why not the same for frames from the channel ? */
if (f->frametype == AST_FRAME_CONTROL && f->subclass == AST_CONTROL_HANGUP) {
ast_frfree(f);
f = NULL;
@@ -1978,6 +1979,7 @@ static struct ast_frame *__ast_read(struct ast_channel *chan, int dropaudio)
queue_frame_to_spies(chan, f, SPY_READ);
if (chan->monitor && chan->monitor->read_stream ) {
+ /* XXX what does this do ? */
#ifndef MONITOR_CONSTANT_DELAY
int jump = chan->outsmpl - chan->insmpl - 4 * f->samples;
if (jump >= 0) {