mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user