mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-04-07 08:05:04 +00:00
DVS capture: wait 2x frame time duration
This commit is contained in:
@@ -554,7 +554,7 @@ struct video_frame *vidcap_dvs_grab(void *state, struct audio_frame **audio)
|
||||
gettimeofday(&tp, NULL);
|
||||
ts.tv_sec = tp.tv_sec;
|
||||
ts.tv_nsec = tp.tv_usec * 1000;
|
||||
ts.tv_nsec += 1000 * 1000 * 1000 / s->frame->fps;
|
||||
ts.tv_nsec += 2 * 1000 * 1000 * 1000 / s->frame->fps;
|
||||
// make it correct
|
||||
ts.tv_sec += ts.tv_nsec / 1000000000;
|
||||
ts.tv_nsec = ts.tv_nsec % 1000000000;
|
||||
|
||||
Reference in New Issue
Block a user