fix a bug introduced when I merged my frame caching branch. Queue the
authorRussell Bryant <russell@russellbryant.com>
Wed, 30 Aug 2006 17:07:07 +0000 (17:07 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 30 Aug 2006 17:07:07 +0000 (17:07 +0000)
translated frame to the spies, *not* the original frame.  Thanks PCadach!

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41389 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/channel.c

index 84e54b8..61df3d2 100644 (file)
@@ -1359,7 +1359,7 @@ static void queue_frame_to_spies(struct ast_channel *chan, struct ast_frame *f,
                                        break;
                                }
                        }
                                        break;
                                }
                        }
-                       AST_LIST_INSERT_TAIL(&queue->list, ast_frdup(f), frame_list);
+                       AST_LIST_INSERT_TAIL(&queue->list, ast_frdup(translated_frame), frame_list);
                } else {
                        if (f->subclass != queue->format) {
                                ast_log(LOG_WARNING, "Spy '%s' on channel '%s' wants format '%s', but frame is '%s', dropping\n",
                } else {
                        if (f->subclass != queue->format) {
                                ast_log(LOG_WARNING, "Spy '%s' on channel '%s' wants format '%s', but frame is '%s', dropping\n",