v4l2object: Workaround bad TRY_FMT colorimetry implementation
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 18 Nov 2019 18:27:42 +0000 (13:27 -0500)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 19 Nov 2019 16:26:03 +0000 (16:26 +0000)
commit5fbc79c3a8ffb75e447b9e81f506da5b5bf073fe
treec1cd41372665ffdc9baa9854325ef3286cf89ea8
parent52caa50feb3d145c1c67f68b34a77d1646b2c8d0
v4l2object: Workaround bad TRY_FMT colorimetry implementation

libv4l2 reset the colorpace to 0 and does not do any request to the
driver. This yields an invalid colorspace which currently cause a
negotiation failure. This workaround by ignoring bad values during the
TRY_FMT step.
sys/v4l2/gstv4l2object.c