[Asterisk-cvs] asterisk/apps app_record.c,1.5,1.6
markster at lists.digium.com
markster at lists.digium.com
Tue Oct 28 07:41:12 CST 2003
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv31078/apps
Modified Files:
app_record.c
Log Message:
Don't free sildet unless we have one
Index: app_record.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_record.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- app_record.c 29 Jun 2003 03:24:39 -0000 1.5
+++ app_record.c 28 Oct 2003 14:07:19 -0000 1.6
@@ -56,7 +56,7 @@
struct localuser *u;
struct ast_frame *f = NULL;
- struct ast_dsp *sildet; /* silence detector dsp */
+ struct ast_dsp *sildet = NULL; /* silence detector dsp */
int totalsilence = 0;
int dspsilence = 0;
int silence = 0; /* amount of silence to allow */
@@ -222,7 +222,8 @@
res = ast_set_read_format(chan, rfmt);
if (res)
ast_log(LOG_WARNING, "Unable to restore read format on '%s'\n", chan->name);
- ast_dsp_free(sildet);
+ if (sildet)
+ ast_dsp_free(sildet);
}
return res;
}
More information about the svn-commits
mailing list