v4l2: videodec: Don't forcibly drain on resolution changes
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 19 Apr 2023 18:19:13 +0000 (14:19 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 2 May 2023 14:42:43 +0000 (14:42 +0000)
commit3864c12548e7380c4a3a9608ca3cdfd9d4b96a0a
treeb44e0c59237c2ede6c7a70cbb13bcadcac61ab11
parent01c9e10529a3db3842a94c8b1d4289795ac8dcb8
v4l2: videodec: Don't forcibly drain on resolution changes

Let the driver detects the change and reconfigure the capture side
transparently from there. This avoid reallocation of the output buffers,
and eliminates the need to stop and restart the capture task. This is
only happening if the driver have support for this, otherwise the old
behaviour is maintained.

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