aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_festival.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-24 15:04:51 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-24 15:04:51 +0000
commit1ceab5e2e25a20fd4a12ebbc6715decf7d278080 (patch)
treefe43af33f488ec8a6c727696be5357fae616a770 /apps/app_festival.c
parentf632d1feb7a5e48febec55322bb0bda16106c224 (diff)
Merged revisions 65853 via svnmerge from
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: http://svn.digium.com/svn/asterisk/trunk@65855 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_festival.c')
-rw-r--r--apps/app_festival.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/app_festival.c b/apps/app_festival.c
index 678b8cd86..22a799f63 100644
--- a/apps/app_festival.c
+++ b/apps/app_festival.c
@@ -180,7 +180,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");
@@ -241,7 +243,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;