diff options
author | Joshua Colp <jcolp@digium.com> | 2007-05-25 01:37:50 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2007-05-25 01:37:50 +0000 |
commit | 844394c495470d408c6e13fc4f5a3bb5e0e1852a (patch) | |
tree | 6e863811293a8c8284b07ce52cc362fca37aeafd /main/slinfactory.c | |
parent | 2b25070414f824f37468878d53013ad3848cab16 (diff) |
Merged revisions 66074 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r66074 | file | 2007-05-24 18:16:58 -0400 (Thu, 24 May 2007) | 2 lines
Fix slinfactory logic when dealing with frames coming in that may already be in the signed linear format.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@66109 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/slinfactory.c')
-rw-r--r-- | main/slinfactory.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/main/slinfactory.c b/main/slinfactory.c index 6171eb2e2..5061a609e 100644 --- a/main/slinfactory.c +++ b/main/slinfactory.c @@ -72,11 +72,13 @@ int ast_slinfactory_feed(struct ast_slinfactory *sf, struct ast_frame *f) sf->format = f->subclass; } } + if (!(begin_frame = ast_translate(sf->trans, f, 0)) || !(duped_frame = ast_frdup(begin_frame))) + return 0; + } else { + if (!(duped_frame = ast_frdup(f))) + return 0; } - if ((sf->trans && (!(begin_frame = ast_translate(sf->trans, f, 0)))) || (!(duped_frame = ast_frdup(begin_frame)))) - return 0; - x = 0; AST_LIST_TRAVERSE(&sf->queue, frame_ptr, frame_list) x++; |