[Asterisk-cvs] asterisk/apps app_ices.c,1.1,1.2 app_nbscat.c,1.1,1.2

citats at lists.digium.com citats at lists.digium.com
Sat Mar 27 02:37:09 CST 2004


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

Modified Files:
	app_ices.c app_nbscat.c 
Log Message:
Fixup read/write locking


Index: app_ices.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_ices.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- app_ices.c	17 Feb 2004 07:03:13 -0000	1.1
+++ app_ices.c	27 Mar 2004 07:34:37 -0000	1.2
@@ -113,7 +113,7 @@
 	}
 
 	oreadformat = chan->readformat;
-	res = ast_set_read_format(chan, AST_FORMAT_SLINEAR);
+	res = ast_set_read_format(chan, AST_FORMAT_SLINEAR, 0);
 	if (res < 0) {
 		close(fds[0]);
 		close(fds[1]);
@@ -164,7 +164,7 @@
 	if (pid > -1)
 		kill(pid, SIGKILL);
 	if (!res && oreadformat)
-		ast_set_read_format(chan, oreadformat);
+		ast_set_read_format(chan, oreadformat, 0);
 	return res;
 }
 

Index: app_nbscat.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_nbscat.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- app_nbscat.c	20 Mar 2004 07:16:27 -0000	1.1
+++ app_nbscat.c	27 Mar 2004 07:34:37 -0000	1.2
@@ -109,7 +109,7 @@
 	ast_stopstream(chan);
 
 	owriteformat = chan->writeformat;
-	res = ast_set_write_format(chan, AST_FORMAT_SLINEAR);
+	res = ast_set_write_format(chan, AST_FORMAT_SLINEAR, 0);
 	if (res < 0) {
 		ast_log(LOG_WARNING, "Unable to set write format to signed linear\n");
 		return -1;
@@ -173,7 +173,7 @@
 	if (pid > -1)
 		kill(pid, SIGKILL);
 	if (!res && owriteformat)
-		ast_set_write_format(chan, owriteformat);
+		ast_set_write_format(chan, owriteformat, 0);
 	return res;
 }
 




More information about the svn-commits mailing list