aboutsummaryrefslogtreecommitdiffstats
path: root/main/frame.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-10-21 02:59:54 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-10-21 02:59:54 +0000
commitfb85d4632c8233e0f171346a4fa5e41c1e1fdcff (patch)
treec8084946ae44afa6c899629f484b1ee91352d147 /main/frame.c
parent734d64af9e1770c4594dac5a5844c692ae08051d (diff)
Isolate frames returned from a DSP instance or codec translator.
The reasoning for these changes are the same as what I wrote in the commit message for rev 222878. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@224931 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/frame.c')
-rw-r--r--main/frame.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/main/frame.c b/main/frame.c
index 6cd886123..d35769488 100644
--- a/main/frame.c
+++ b/main/frame.c
@@ -342,12 +342,6 @@ static void frame_cache_cleanup(void *data)
static void __frame_free(struct ast_frame *fr, int cache)
{
- if (ast_test_flag(fr, AST_FRFLAG_FROM_TRANSLATOR)) {
- ast_translate_frame_freed(fr);
- } else if (ast_test_flag(fr, AST_FRFLAG_FROM_DSP)) {
- ast_dsp_frame_freed(fr);
- }
-
if (!fr->mallocd)
return;
@@ -432,8 +426,6 @@ struct ast_frame *ast_frisolate(struct ast_frame *fr)
out->seqno = fr->seqno;
}
} else {
- ast_clear_flag(fr, AST_FRFLAG_FROM_TRANSLATOR);
- ast_clear_flag(fr, AST_FRFLAG_FROM_DSP);
out = fr;
}