[Asterisk-cvs] asterisk file.c,1.56,1.57

twisted at lists.digium.com twisted at lists.digium.com
Sun Feb 6 00:42:55 CST 2005


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv23659

Modified Files:
	file.c 
Log Message:
Don't crash when pause/stop keys aren't defined on the command line (Bug #3514)


Index: file.c
===================================================================
RCS file: /usr/cvsroot/asterisk/file.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- file.c	3 Feb 2005 05:35:03 -0000	1.56
+++ file.c	6 Feb 2005 06:43:32 -0000	1.57
@@ -995,6 +995,14 @@
 {
 	int res;
 	struct ast_frame *fr;
+
+	if (!breakon)
+			breakon = "";
+	if (!forward)
+			forward = "";
+	if (!rewind)
+			rewind = "";
+	
 	while(c->stream) {
 		res = ast_sched_wait(c->sched);
 		if ((res < 0) && !c->timingfunc) {
@@ -1059,6 +1067,9 @@
 	int outfd;
 	struct ast_frame *fr;
 	struct ast_channel *rchan;
+
+	if (!breakon)
+		breakon = "";
 	
 	while(c->stream) {
 		ms = ast_sched_wait(c->sched);




More information about the svn-commits mailing list