]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5296
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 21 Aug 2013 21:28:39 +0000 (02:28 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 21 Aug 2013 21:28:39 +0000 (02:28 +0500)
libs/stfu/stfu.c

index 5ab14a31d62a72250cb3f158f14c887100fb5368..8f09145e71b75471ee8777cad8458fa57a3a86c6 100644 (file)
@@ -447,6 +447,10 @@ stfu_status_t stfu_n_add_data(stfu_instance_t *i, uint32_t ts, uint16_t seq, uin
 
 
         if (i->max_drift) {
+            if (i->drift_dropped_packets > 500) {
+                stfu_n_reset(i);
+            }
+
             if (i->ts_drift < i->max_drift) {
                 if (++i->drift_dropped_packets < i->drift_max_dropped) {
                     stfu_log(STFU_LOG_EMERG, "%s TOO LATE !!! %u \n\n\n", i->name, ts);