v4l2: videodec: Wait for source change event
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 14 Apr 2023 22:54:22 +0000 (18:54 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 2 May 2023 14:42:43 +0000 (14:42 +0000)
commit642103fdcc7f29facf1295d09dd9f79248d1fa80
tree2634ba80d69546f719aa95cbe97bf71139f606c2
parent7599821c423afac3449b2a33107a0f7acfb1cceb
v4l2: videodec: Wait for source change event

Stop doing capture buffer allocation based on guesses
and wait for the source change event when available.
Unlike stateless decoder, the stateful decoder is not aware of
the coded resolution, and this may lead to the wrong result
even when using TRY_FMT.

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