do an initial fps report early on

This commit is contained in:
Isaac 2018-04-06 23:21:22 +02:00
parent d8171750cd
commit 64cfb39043
1 changed files with 1 additions and 1 deletions

View File

@ -2436,7 +2436,7 @@ Debug(4, "Return from Capture (%d)", captureResult);
image_count++;
if ( image_count && fps_report_interval && !(image_count%fps_report_interval) ) {
if ( image_count && fps_report_interval && ( (!(image_count%fps_report_interval)) || image_count < 5 ) ) {
time_t now = image_buffer[index].timestamp->tv_sec;
// If we are too fast, we get div by zero. This seems to happen in the case of audio packets.
if ( now != last_fps_time ) {