vo_gpu/d3d11: remove unnecessary nullptr check

mp_to_utf8 will abort in case of either invalid input or OOM.
This commit is contained in:
Jan Ekström
2019-10-14 20:20:25 +03:00
parent 89f4ce9d6f
commit 03e7a36a73

View File

@@ -201,10 +201,10 @@ static IDXGIAdapter1 *get_d3d11_adapter(struct mp_log *log,
bstr_xappend_asprintf(NULL, listing,
"Adapter %u: vendor: %u, description: %s\n",
adapter_num, desc.VendorId,
adapter_description ? adapter_description : "<No Description>");
adapter_description);
}
if (adapter_description && requested_adapter_name.len &&
if (requested_adapter_name.len &&
bstr_case_startswith(bstr0(adapter_description),
requested_adapter_name))
{