FS-10126: [freeswitch-core] General Video Improvements #resolve

This commit is contained in:
Anthony Minessale
2017-03-10 21:14:17 -06:00
parent 589023b52c
commit f4ad4ed6c4
12 changed files with 596 additions and 158 deletions

View File

@@ -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;
}