vo: add missing return variable assignment

This commit is contained in:
Kacper Michajłow 2023-11-18 23:33:04 +01:00 committed by Dudemanguy
parent d30432ea31
commit 1b28b94585
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;