dect
/
asterisk
Archived
13
0
Fork 0

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: http://svn.digium.com/svn/asterisk/trunk@66109 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
file 2007-05-25 01:37:50 +00:00
parent f392ba9da8
commit 578296fb22
1 changed files with 5 additions and 3 deletions

View File

@ -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++;