d3d11: Enumerate devices via native DXGI API
authorSeungha Yang <seungha@centricular.com>
Sun, 26 Jun 2022 19:07:04 +0000 (04:07 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 27 Jun 2022 20:30:13 +0000 (20:30 +0000)
commitb09ae1d63557987340992760cfa8291ecec79fe7
tree2b99ea14023238deae3b434a71be4c1009a22633
parent260114fa1bcd3845accd9ea6e108df0d28fb1f14
d3d11: Enumerate devices via native DXGI API

D3D11CreateDevice() can fail for some reason (e.g., buggy GPU driver)
and then gst_d3d11_device_new() will return nullptr.
Use DXGI API directly instead of relying on the gst_d3d11_device_new()

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2663>
subprojects/gst-plugins-bad/sys/d3d11/plugin.cpp