v4l2: Detect bad drivers timestamps
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Fri, 5 Sep 2014 12:29:20 +0000 (08:29 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Tue, 9 Sep 2014 22:50:59 +0000 (18:50 -0400)
commitb706103fab54d38136ca234cb6013d782651d59f
tree61f1c14ef170ed965a4afb1bf7e02e41217393a9
parent5c933fa781ef61ac5b7e45fa855d0f916fd5957b
v4l2: Detect bad drivers timestamps

Even though the UVC driver do a great deal of effort to prevent bad
timestamp to be sent to userspace, there still exist UVC hardware that
are so buggy that the timestamp endup nearly random. This code detect
and ignore timestamp from these drivers, making these camera usable.
This has been tested on both invalid and valid cameras, making sure it
does not trigger for valid cameras.

https://bugzilla.gnome.org/show_bug.cgi?id=732910
sys/v4l2/gstv4l2src.c
sys/v4l2/gstv4l2src.h