From 6e9249b078e450621a7140c9bb78e53c1973e038 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Thu, 14 Mar 2024 00:49:45 +0900 Subject: [PATCH] d3d11device: Fix adapter LUID comparison in wrapped device mode Fix integer type mismatching Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3382 Part-of: --- .../gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11device.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11device.cpp b/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11device.cpp index a97643a635..2b3ee64d7a 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11device.cpp +++ b/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11device.cpp @@ -833,7 +833,6 @@ _gst_d3d11_device_get_adapter (const GstD3D11DeviceConstructData * data, ComPtr < IDXGIDevice > dxgi_device; ComPtr < IDXGIAdapter > adapter; ID3D11Device *device = data->data.device; - guint luid; hr = device->QueryInterface (IID_PPV_ARGS (&dxgi_device)); if (FAILED (hr)) @@ -851,7 +850,7 @@ _gst_d3d11_device_get_adapter (const GstD3D11DeviceConstructData * data, if (FAILED (hr)) return hr; - luid = gst_d3d11_luid_to_int64 (&desc.AdapterLuid); + auto luid = gst_d3d11_luid_to_int64 (&desc.AdapterLuid); for (guint i = 0;; i++) { DXGI_ADAPTER_DESC tmp_desc;