[asterisk-commits] russell: branch 1.4 r65853 - /branches/1.4/apps/app_festival.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu May 24 08:04:15 MST 2007


Author: russell
Date: Thu May 24 10:04:14 2007
New Revision: 65853

URL: http://svn.digium.com/view/asterisk?view=rev&rev=65853
Log:
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)

Modified:
    branches/1.4/apps/app_festival.c

Modified: branches/1.4/apps/app_festival.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_festival.c?view=diff&rev=65853&r1=65852&r2=65853
==============================================================================
--- branches/1.4/apps/app_festival.c (original)
+++ branches/1.4/apps/app_festival.c Thu May 24 10:04:14 2007
@@ -178,7 +178,9 @@
 		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 @@
 					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;



More information about the asterisk-commits mailing list