v4l2videodec: Fix activation of internal pool
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 19 May 2022 19:51:03 +0000 (15:51 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 28 Jun 2022 16:19:53 +0000 (16:19 +0000)
commit7c40fcb66e3453df03276d9fc12416e2f1fa28fc
treeda220a2ed7b78715a7114ddf23f87c8e2c745a3b
parentafc94046ba1dc6f94490207394fbbb0136988f7c
v4l2videodec: Fix activation of internal pool

If the driver does not support VIDIOC_CREATE_BUFS ioctl, the pool
configuration may get changed, which requires a validation. This would
fail to activate a pool in a case it shouldn't normally fail unless we
are out of memory.

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