]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
mark a couple of dubious pieces of code
authorLuigi Rizzo <rizzo@icir.org>
Tue, 9 May 2006 07:51:55 +0000 (07:51 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Tue, 9 May 2006 07:51:55 +0000 (07:51 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@25894 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channel.c

index 800ad847d5e21652871aa06001da08ae4e2b5c67..1d278b648362997db0714bb325a253f9843572fe 100644 (file)
--- 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) {