va: Fix the caps memory leak by gst_va_pool_new_with_config().
authorHe Junyan <junyan.he@intel.com>
Thu, 1 Dec 2022 14:50:30 +0000 (22:50 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 1 Dec 2022 17:31:16 +0000 (17:31 +0000)
commit765adf5325e894b7e53ea73ec9782dadc2da1fa3
tree5862f7ec001b11c12cd1bec58663a915dafad3b9
parentc8a0d706cae18891af893de844019d6afdadfb64
va: Fix the caps memory leak by gst_va_pool_new_with_config().

The gst_va_pool_new_with_config() will ref the caps, and so we need
to unref after that.

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