v4l2: videodec: Detect flushes while setting up the capture
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 21 Apr 2023 17:33:11 +0000 (13:33 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 2 May 2023 14:42:43 +0000 (14:42 +0000)
commitc93545f5b7e83e3de33f1ab6a74e5349530a20a9
treefa97a81c464b331dc5dd8ae220cdbd14ecfca76e
parenta7581dc4d6c21f4c677fa594b5abab9de9ead5c1
v4l2: videodec: Detect flushes while setting up the capture

As we missed the fact we were flushing, we could create and activate
that buffer pool, and wait on it, causing a hang. We detect that we
are flushing by checking the related pad state.

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