The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

d/v4l2: Use timeval conversion function

+1 -4
+1 -4
src/xrt/drivers/v4l2/v4l2_driver.c
··· 904 904 xf->source_sequence = v_buf.sequence; 905 905 906 906 if ((v_buf.flags & V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC) != 0) { 907 - int64_t ns = 0; 908 - ns += v_buf.timestamp.tv_sec * 1000 * 1000 * 1000; 909 - ns += v_buf.timestamp.tv_usec * 1000; 910 - xf->timestamp = ns; 907 + xf->timestamp = os_timeval_to_ns(&v_buf.timestamp); 911 908 } 912 909 913 910 vid->sink->push_frame(vid->sink, xf);