v4l2: videodec: Fix stalls on empty buffer
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 18 May 2023 15:58:51 +0000 (11:58 -0400)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 18 May 2023 16:18:12 +0000 (17:18 +0100)
commita7f6b878e0974645a7cf5b45f334e8909668585e
tree582532c79b45ece426489e19e7b5769ad51a7a11
parente8b74ada7c4c16f16365415176a301dddecf58f6
v4l2: videodec: Fix stalls on empty buffer

Drivers may signal end of sequence using an empty buffer and LAST buffer
set, or just an empty buffer on certain legacy implementation. When this
occured, we'd send GST_V4L2_FLOW_LAST_BUFFER were the code expected
GST_FLOW_EOS. Stop abusing GST_FLOW_EOS and port all the code to the new
GST_V4L2_FLOW_LAST_BUFFER.

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