mirror of https://github.com/mpv-player/mpv
vo: add missing return variable assignment
This commit is contained in:
parent
d30432ea31
commit
1b28b94585
|
@ -186,7 +186,7 @@ AVBufferRef *d3d9_wrap_device_ref(IDirect3DDevice9 *device)
|
||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
IDirect3DDeviceManager9_ResetDevice(hwctx->devmgr, device, reset_token);
|
hr = IDirect3DDeviceManager9_ResetDevice(hwctx->devmgr, device, reset_token);
|
||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@ static int vk_validate_dev(struct mp_log *log, const struct m_option *opt,
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
devices = talloc_array(NULL, VkPhysicalDevice, num);
|
devices = talloc_array(NULL, VkPhysicalDevice, num);
|
||||||
vkEnumeratePhysicalDevices(inst, &num, devices);
|
res = vkEnumeratePhysicalDevices(inst, &num, devices);
|
||||||
if (res != VK_SUCCESS)
|
if (res != VK_SUCCESS)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue