From: Mark Michelson Date: Tue, 17 Jan 2012 17:22:07 +0000 (+0000) Subject: Eliminate odd initialization of probation variable. X-Git-Tag: 1.8.10.0-rc1~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37a8ff4dc8aa362c22336b6e49599ecde1985286;p=thirdparty%2Fasterisk.git Eliminate odd initialization of probation variable. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@351306 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index a7ec949e90..c283cdeac8 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -495,12 +495,10 @@ static void rtp_learning_seq_init(struct ast_rtp *rtp, uint16_t seq) */ 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 */ rtp->learning_probation--;