[asterisk-commits] mmichelson: branch 1.8 r351306 - /branches/1.8/res/res_rtp_asterisk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jan 17 11:22:12 CST 2012


Author: mmichelson
Date: Tue Jan 17 11:22:07 2012
New Revision: 351306

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=351306
Log:
Eliminate odd initialization of probation variable.


Modified:
    branches/1.8/res/res_rtp_asterisk.c

Modified: branches/1.8/res/res_rtp_asterisk.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/res/res_rtp_asterisk.c?view=diff&rev=351306&r1=351305&r2=351306
==============================================================================
--- branches/1.8/res/res_rtp_asterisk.c (original)
+++ branches/1.8/res/res_rtp_asterisk.c Tue Jan 17 11:22:07 2012
@@ -495,11 +495,9 @@
  */
 static int rtp_learning_rtp_seq_update(struct ast_rtp *rtp, uint16_t seq)
 {
-	int probation = 0;
+	int probation = 1;
 
 	ast_debug(1, "%p -- probation = %d, seq = %d\n", rtp, rtp->learning_probation, seq);
-
-	probation = 1;
 
 	if (seq == rtp->learning_max_seq + 1) {
 		/* packet is in sequence */




More information about the asterisk-commits mailing list