v4l2src: Calculate framerate from DV timings
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 10 Feb 2021 21:37:01 +0000 (16:37 -0500)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 19 Feb 2021 21:02:02 +0000 (16:02 -0500)
commitb530c0ef4eac10ec01c84fcef96e63a501950c1f
tree4028f2426022dd9a3488eb2c529f1dd7b00724dd
parent25696203c3a20e70ddf1135d3dbd637c6bdbc69b
v4l2src: Calculate framerate from DV timings

And use this framerate in our preference. Note that we also flush
the probed caps as it seems that the format enumeration may change
when a new source change event get triggered.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/870>
sys/v4l2/gstv4l2src.c
sys/v4l2/v4l2_calls.c