vkdeviceprovider: Avoid deadlock on physical device
authorJan Schmidt <jan@centricular.com>
Mon, 2 Nov 2020 15:22:23 +0000 (02:22 +1100)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 3 Nov 2020 04:28:00 +0000 (04:28 +0000)
commit5f9897745b29827b4c6d62719e4892b335978c2c
tree1470118fe0b9be48e05cccf28f82c636390be40c
parentd1f397e7546f2c63069993f55966a43464976e3f
vkdeviceprovider: Avoid deadlock on physical device

Don't hold the object lock on the vk physical device while
constructing a GstVulkanDevice around it, as
GstVulkanDevice can make calls on the physical device that
require the object lock.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1754>
ext/vulkan/vkdeviceprovider.c