v4l2: bufferpool: Avoid warnings on empty last buffer
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 5 Sep 2023 20:51:24 +0000 (16:51 -0400)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 12 Sep 2023 16:42:16 +0000 (17:42 +0100)
commitbce30535988d33acff5a9164ccaaf7092f9e24a2
tree05d9ce13b1da8451b95ed231d011d006749031f2
parent914e7520154029ddf37b845d4488bf4ddd0e183d
v4l2: bufferpool: Avoid warnings on empty last buffer

Some drivers will push an buffer flagged LAST but empty. In decoder
case, this results in an "producing too many buffer" warning, even
though the result is entirely correct. Detect this case in order to
signal EOS earlier and avoid this warning.

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