v4l2: Reset transfer in gst_v4l2_object_acquire_format()
authorHou Qi <qi.hou@nxp.com>
Tue, 24 May 2022 08:07:13 +0000 (16:07 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 26 May 2022 17:09:28 +0000 (17:09 +0000)
commit7f2fb3b783a064bc07603e5f28a3d18d5471045a
tree8ca7fec5d9e8847ba85b421720fe46ee5b8ac30f
parent6c0423b86193013a258e3b4ed624e894e90e9e30
v4l2: Reset transfer in gst_v4l2_object_acquire_format()

get_colorspace() checks input caps transfer when mapping V4L2_XFER_FUNC_709
back to V4L2_COLORSPACE_BT2020 and GST_VIDEO_TRANSFER_BT2020_12. After
receiving source change event, decoder will G_FMT and S_FMT again. So need
to reset transfer when acquiring format to avoid using the old transfer.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2475>
subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.c