]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10021: [RTP] Large RTP timestamp jump when system clock is late from internal...
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 9 Feb 2017 17:09:52 +0000 (11:09 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 9 Feb 2017 17:10:01 +0000 (11:10 -0600)
src/switch_time.c

index 01e6dfab1563b8226b72dbe09d160deef13303c2..8554c5c9f3b3f83010ae9560dec65ca0bf6c0916 100644 (file)
@@ -380,7 +380,7 @@ SWITCH_DECLARE(void) switch_time_set_cond_yield(switch_bool_t enable)
 
 static switch_status_t timer_generic_sync(switch_timer_t *timer)
 {
-       switch_time_t now = switch_time_now();
+       switch_time_t now = switch_micro_time_now();
        int64_t elapsed = (now - timer->start);
        
        timer->tick = (elapsed / timer->interval) / 1000;