]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11666: RTCP: fix RENACK_TIME check (throttle when NACKing the same seq)
authorDragos Oancea <dragos@signalwire.com>
Sun, 24 Feb 2019 05:49:24 +0000 (05:49 +0000)
committerDragos Oancea <dragos@signalwire.com>
Thu, 6 Jun 2019 16:49:13 +0000 (16:49 +0000)
src/switch_jitterbuffer.c

index 206deb5806daa35c2b68bd0e4eb43c6654bdb431..a709502107256e3749066be88a281dc7ab94a55f 100644 (file)
@@ -1140,8 +1140,8 @@ SWITCH_DECLARE(uint32_t) switch_jb_pop_nack(switch_jb_t *jb)
                seq = ntohs(*((uint16_t *) var));
                then = (intptr_t) val;
 
-               if (then != 1 && switch_time_now() - then < RENACK_TIME) {
-                       //jb_debug(jb, 3, "NACKABLE seq %u too soon to repeat\n", seq);
+               if (then != 1 && ((uint32_t)(switch_time_now() - then)) < RENACK_TIME) {
+                       jb_debug(jb, 3, "NACKABLE seq %u too soon to repeat\n", seq);
                        continue;
                }