mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 08:05:37 +00:00
FS-10021: [RTP] Large RTP timestamp jump when system clock is late from internal timer #resolve
This commit is contained in:
parent
4bda9bf1e6
commit
f94302dce8
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user