v4l2: object: Handle video helper return value
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 5 Sep 2023 20:56:44 +0000 (16:56 -0400)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 12 Sep 2023 16:44:44 +0000 (17:44 +0100)
commit92820a8cf2a13fa94be68f416fdab0a65cdf72a6
treeed539d8c614df3ded241237ff653569609ed79d1
parentbce30535988d33acff5a9164ccaaf7092f9e24a2
v4l2: object: Handle video helper return value

gst_video_info_set_interlaced_format() can return an error if the
width/height causes integer overflow. Handle this case, so that we can
fail cleanly. This has been experienced while testing an in-progress
driver.

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