gst_d3d11_device_new_wrapped() always returns NULL (GstD3D11Device)
Hi all!
gst_d3d11_device_new_wrapped() always returns NULL ( gstreamer version 1.24 on Windows 11, official build )
snippet to reproduce:
auto *device = gst_d3d11_device_new(0, D3D11_CREATE_DEVICE_BGRA_SUPPORT);
ID3D11Device *native = gst_d3d11_device_get_device_handle(device);
auto *wrapped = gst_d3d11_device_new_wrapped(native);
even when re-feeding the ID3D11Device created through gst_d3d11_device_new(), wrapped is always NULL
GST_DEBUG output:
d3d11device gstd3d11device.cpp:1021:gst_d3d11_device_new_internal: Failed to get DXGI adapter
but actually the IDXGIAdapter is fine:
auto *device = gst_d3d11_device_new(0, D3D11_CREATE_DEVICE_BGRA_SUPPORT);
ID3D11Device *native = gst_d3d11_device_get_device_handle(device);
Microsoft::WRL::ComPtr<ID3D11Device> dxdev(native);
Microsoft::WRL::ComPtr<IDXGIDevice3> dxgi;
dxdev.As(&dxgi);
Microsoft::WRL::ComPtr<IDXGIAdapter> adapter;
dxgi->GetAdapter(&adapter);
Cheers & thanks in advance