v4l2videodec: release decode only frame in input list
authorDean Zhang (张安迪) <dean.zhang@mediatek.com>
Mon, 6 Jan 2025 12:30:51 +0000 (20:30 +0800)
committerBackport Bot <gitlab-backport-bot@gstreamer-foundation.org>
Mon, 6 Jan 2025 17:00:15 +0000 (17:00 +0000)
commitc7caf8473d5b3e4e9594b85de0e0f77e3ee1e105
treed23687b6dfb85c8a1d54d4548d7ef2c6d14c2a28
parent146f590586685c53a23f81027b22f4250334c09d
v4l2videodec: release decode only frame in input list

For some frames with decode-only flag, the v4l2 decoder will not
put them in output list. The corresponding decode-only frames will
be still kept in input list, which may cause potential performance
issue when the input list is full. So release the decode-only frames
according to the decode-only flag after they are processed by decoder
driver.

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