mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
FS-10126: [freeswitch-core] General Video Improvements #resolve
This commit is contained in:
@@ -386,6 +386,14 @@ static switch_status_t timer_generic_sync(switch_timer_t *timer)
|
||||
timer->tick = (elapsed / timer->interval) / 1000;
|
||||
timer->samplecount = (uint32_t)(timer->tick * timer->samples);
|
||||
|
||||
if (timer->interval == 1 && timer->samplecount == timer->last_samplecount) {
|
||||
timer->samplecount++;
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG1, "Timer sync too often\n");
|
||||
}
|
||||
timer->last_samplecount = timer->samplecount;
|
||||
|
||||
|
||||
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user