v4l2videodec: Fix missing handling of resolution-change
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 19 May 2022 20:33:47 +0000 (16:33 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 24 May 2022 18:02:12 +0000 (18:02 +0000)
commit6d6ebbbb3693152b9d84a42ef82754fb43e337fe
tree6b73d37c7d96be567b5285da94bc6d6d56aaa9cb
parent4e441417b89b7d7bd6d2f34ca8ee8248020be544
v4l2videodec: Fix missing handling of resolution-change

The pool process function may poll and get the resolution-change event
whenever it is not possible to share our buffers. This typically happen
when downstream does not support GstVideoMeta.

Not handling this would cause the decoder thread to exit silently and the
pipeline to stall.

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