va: Delay the VAProcPipelineCaps query after context created.
authorHe Junyan <junyan.he@intel.com>
Wed, 21 Dec 2022 06:36:31 +0000 (14:36 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 21 Dec 2022 14:31:23 +0000 (14:31 +0000)
commitad0ba3ab7d6683e8af164b6d18b8595a6e9e25c2
tree3fadfc41f79cc0f9282e5e5f2606539f8122ac5c
parente2cd5b1660658e71d5114cb749f2d21b7829f065
va: Delay the VAProcPipelineCaps query after context created.

The VAAPI vaQueryVideoProcPipelineCaps() requires the context as the
parameter. So far, we always pass VA_INVALID_ID and it can succeed.
But the API does not say that and in theory, a valid context is required.
Now the new platform really needs a valid context and so we have to
delay that query until the context is created.

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