va: decoder: Also ref the display when duplicating pictures.
authorHe Junyan <junyan.he@intel.com>
Fri, 19 Nov 2021 11:02:20 +0000 (19:02 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 19 Nov 2021 14:40:18 +0000 (14:40 +0000)
commitc2bffe22f36a917c2df341f01066095310be6d50
tree0004c7bf9c3de1d38e9cfbbae4c808ea9c2e7e44
parent53391d2b8db24082e28f9b4c2a3e87923a7a4981
va: decoder: Also ref the display when duplicating pictures.

The _destroy_buffers() will check the display handle using the
g_return_val_if_fail. we should not generate the invalid pointer
warning.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1368>
subprojects/gst-plugins-bad/sys/va/gstvadecoder.c