From 9665c79f8ba96c5fe2fe6207e4752ce5bf4eb3ba Mon Sep 17 00:00:00 2001 From: russell Date: Thu, 24 May 2007 15:04:14 +0000 Subject: 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: http://svn.digium.com/svn/asterisk/branches/1.4@65853 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_festival.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/app_festival.c b/apps/app_festival.c index 126dde29d..2aceceefd 100644 --- a/apps/app_festival.c +++ b/apps/app_festival.c @@ -178,7 +178,9 @@ static int send_waveform_to_channel(struct ast_channel *chan, char *waveform, in 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"); @@ -238,7 +240,6 @@ static int send_waveform_to_channel(struct ast_channel *chan, char *waveform, in 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; -- cgit v1.2.3