mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2433>
This commit is contained in:
parent
3487c81ac2
commit
ca7081c482
1 changed files with 3 additions and 3 deletions
|
@ -964,7 +964,7 @@ gst_d3d11_device_new_internal (const GstD3D11DeviceConstructData * data)
|
||||||
|
|
||||||
hr = CreateDXGIFactory1 (IID_PPV_ARGS (&factory));
|
hr = CreateDXGIFactory1 (IID_PPV_ARGS (&factory));
|
||||||
if (!gst_d3d11_result (hr, NULL)) {
|
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;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -993,7 +993,7 @@ gst_d3d11_device_new_internal (const GstD3D11DeviceConstructData * data)
|
||||||
|
|
||||||
hr = external_device->QueryInterface (IID_PPV_ARGS (&device));
|
hr = external_device->QueryInterface (IID_PPV_ARGS (&device));
|
||||||
if (FAILED (hr)) {
|
if (FAILED (hr)) {
|
||||||
GST_ERROR ("Not a valid external ID3D11Device handle");
|
GST_WARNING ("Not a valid external ID3D11Device handle");
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1050,7 +1050,7 @@ gst_d3d11_device_new_internal (const GstD3D11DeviceConstructData * data)
|
||||||
}
|
}
|
||||||
case DEVICE_CONSTRUCT_FOR_ADAPTER_LUID:
|
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",
|
G_GINT64_FORMAT " with flags 0x%x, hr: 0x%x",
|
||||||
data->data.adapter_luid, create_flags, (guint) hr);
|
data->data.adapter_luid, create_flags, (guint) hr);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
Loading…
Reference in a new issue