diff options
author | Mark Michelson <mmichelson@digium.com> | 2012-01-17 17:23:25 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2012-01-17 17:23:25 +0000 |
commit | f5dd17e558db4572c08bb7d14bb990a40c8446ff (patch) | |
tree | 2d306e483d675f33bcdf433afa76e1dbbf35271a /res | |
parent | ee4cf38a27064fb2b33d2c0d328798d57acc0f65 (diff) |
Eliminate odd initialization of probation variable.
........
Merged revisions 351306 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 351308 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@351311 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res')
-rw-r--r-- | res/res_rtp_asterisk.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index 1cd68736e..eb1d07d6c 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--; |