https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r65853 | russell | 2007-05-24 10:04:14 -0500 (Thu, 24 May 2007) | 4 lines
Ensure that frames are fully initialized. This will probably fix getting
weird timestamp log messages in logs when using the Festival app.
(issue #9781, patch by me)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@65855
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
struct ast_frame f;
char offset[AST_FRIENDLY_OFFSET];
char frdata[2048];
- } myf;
+ } myf = {
+ .f = { 0, },
+ };
if (pipe(fds)) {
ast_log(LOG_WARNING, "Unable to create pipe\n");
myf.f.subclass = AST_FORMAT_SLINEAR;
myf.f.datalen = res;
myf.f.samples = res / 2;
- myf.f.mallocd = 0;
myf.f.offset = AST_FRIENDLY_OFFSET;
myf.f.src = __PRETTY_FUNCTION__;
myf.f.data = myf.frdata;