v4l2codecs: vp9: Fix duplicating a duplicated picture
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 9 Feb 2022 20:05:14 +0000 (15:05 -0500)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 9 Feb 2022 22:37:55 +0000 (22:37 +0000)
commit7a9e11ae1bf56809bdeda27d6bbbb9cb7e40b0f5
tree5eb08801455b8c5a31f7529dbd7c4a7bae445042
parent090b50e549ba2679bf0e3658185db3f7ecedf226
v4l2codecs: vp9: Fix duplicating a duplicated picture

Duplicating a picture what was already a dup was leading to a crash. Rename
the custom picture flags as HOLDS_BUFFER to make its meaning clear. Then save
then ref and store the picture as userdata, so it can be obtained when
duplicating. Finally, mark the doplicated as HOLDS_BUFFER to avoid thinking it
holds a request.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1681>
subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codecvp9dec.c