Commit 78555de5 authored by Thiago Santini's avatar Thiago Santini

Uses the timestamp from libuvc instead of our own

parent b9d12317
......@@ -158,7 +158,8 @@ void UVCCameraSession::setSurface(QAbstractVideoSurface* surface)
void cb(uvc_frame_t *frame, void *ptr) { if (ptr && frame) static_cast<UVCCameraSession*>(ptr)->callback(frame); }
void UVCCameraSession::callback(uvc_frame_t *frame)
qreal t = frameReference.elapsed();
//qreal t = frameReference.elapsed();
qreal t = 1e3*frame->capture_time.tv_sec + 1e-3*frame->capture_time.tv_usec; // use libuvc timestamp instead of our own
if (!streaming)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment