From ca7081c482ef83960e2cc9685d765d79350351a0 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Tue, 17 May 2022 04:27:00 +0900 Subject: [PATCH] d3d11device: Don't print ERROR log on open failure Device open can be failed in various reasons, but it's unlikely our problem Part-of: --- subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11device.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 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 0d28f37..b700423 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11device.cpp +++ b/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11device.cpp @@ -964,7 +964,7 @@ gst_d3d11_device_new_internal (const GstD3D11DeviceConstructData * data) hr = CreateDXGIFactory1 (IID_PPV_ARGS (&factory)); if (!gst_d3d11_result (hr, NULL)) { - GST_ERROR ("cannot create dxgi factory, hr: 0x%x", (guint) hr); + GST_WARNING ("cannot create dxgi factory, hr: 0x%x", (guint) hr); return nullptr; } @@ -993,7 +993,7 @@ gst_d3d11_device_new_internal (const GstD3D11DeviceConstructData * data) hr = external_device->QueryInterface (IID_PPV_ARGS (&device)); if (FAILED (hr)) { - GST_ERROR ("Not a valid external ID3D11Device handle"); + GST_WARNING ("Not a valid external ID3D11Device handle"); return nullptr; } @@ -1050,7 +1050,7 @@ gst_d3d11_device_new_internal (const GstD3D11DeviceConstructData * data) } case DEVICE_CONSTRUCT_FOR_ADAPTER_LUID: { - GST_ERROR ("Failed to create d3d11 device for adapter luid %" + GST_WARNING ("Failed to create d3d11 device for adapter luid %" G_GINT64_FORMAT " with flags 0x%x, hr: 0x%x", data->data.adapter_luid, create_flags, (guint) hr); return nullptr; -- 2.7.4