]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8029 minor update
authorAnthony Minessale <anthm@freeswitch.org>
Sun, 23 Aug 2015 23:08:24 +0000 (18:08 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Sun, 23 Aug 2015 23:08:24 +0000 (18:08 -0500)
src/switch_stfu.c

index 5f6be76bea25cc1b58d3d10e1b3cbebfcd35bea7..13df191ca0d4217bd27007118d589eeabe42f406 100644 (file)
@@ -913,8 +913,8 @@ stfu_frame_t *stfu_n_read_a_frame(stfu_instance_t *i)
 
     if (!found && i->samples_per_packet) {
                stfu_frame_t *least = stfu_n_find_least_unread_frame(i);
-
-               if (least && least->ts > i->cur_ts) {
+               
+               if (least && least->ts > i->cur_ts && (least->ts - i->cur_ts) / i->samples_per_packet > i->qlen) {
                        if (stfu_log != null_logger && i->debug) {
                                stfu_log(STFU_LOG_EMERG, "%s SLIPPED BEHIND %d packets, RESYNCRONIZING\n", i->name, (least->ts - i->cur_ts) / i->samples_per_packet);
                        }