v4l2: set default resolution if caps has no such information
authorHou Qi <qi.hou@nxp.com>
Tue, 10 May 2022 08:20:46 +0000 (16:20 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 20 May 2022 12:23:40 +0000 (12:23 +0000)
commit85b53bb65d129fc8142b8862ba8b59f594a44e88
treecadc1b33894dd6ae69517c5172ce89be75f8309f
parent5542dd395dbd60e79e06c4736c39faaf40c4bfa9
v4l2: set default resolution if caps has no such information

Output may attemp to set the width and height to zero values if
caps has no such information, which will cause capture get invalid
dimensions. Then decoder reports negotiation failure.

So need to set default resolution if caps has no such information.
Real values can be set again until source change event is signaled.

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