v4l2src: Reset the compose window to the default after setting format
authorDamian Hobson-Garcia <dhobsong@igel.co.jp>
Fri, 15 Oct 2021 06:32:22 +0000 (15:32 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 3 Mar 2022 13:28:31 +0000 (13:28 +0000)
commit2f410f26bf2d1540a41d0357d41912a458898653
treef69d18557aae3f63906e4e23a492f87ed75f20f7
parentdde9e4e28821119a8a3f84fe8dbd40681972c281
v4l2src: Reset the compose window to the default after setting format

When the size of V4L2 capture or output is changes with VIDIOC_S_FMT,
the device is only required to update the compisition window to fit
inside the new frame size.  This can result in captured data only being
updated on a portion of the frame after a resize.

Update the composition window to the default value determined by the
V4L2 device driver whenever the format is changed to make sure that
all image data is composed to its full size.

Fixes #765

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