[Asterisk-cvs] asterisk/channels chan_iax2.c,1.115,1.116

citats at lists.digium.com citats at lists.digium.com
Thu Mar 25 13:13:51 CST 2004


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

Modified Files:
	chan_iax2.c 
Log Message:
Tiny optimization in chan_iax2.c that the compiler would
probably take care of, but better that we do it


Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.115
retrieving revision 1.116
diff -u -d -r1.115 -r1.116
--- chan_iax2.c	25 Mar 2004 07:17:33 -0000	1.115
+++ chan_iax2.c	25 Mar 2004 18:10:52 -0000	1.116
@@ -2751,12 +2751,10 @@
 		/* Acks' don't get retried */
 		if ((f->frametype == AST_FRAME_IAX) && (f->subclass == IAX_COMMAND_ACK))
 			fr->retries = -1;
-		if (f->frametype == AST_FRAME_VOICE) {
+		else if (f->frametype == AST_FRAME_VOICE)
 			pvt->svoiceformat = f->subclass;
-		}
-		if (f->frametype == AST_FRAME_VIDEO) {
+		else if (f->frametype == AST_FRAME_VIDEO)
 			pvt->svideoformat = f->subclass & ~0x1;
-		}
 		if (now) {
 			res = send_packet(fr);
 		} else




More information about the svn-commits mailing list