From 1b28b945850dfa7371967e8ade2c51141fffe624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Sat, 18 Nov 2023 23:33:04 +0100 Subject: [PATCH] vo: add missing return variable assignment --- video/d3d.c | 2 +- video/out/vulkan/context.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/video/d3d.c b/video/d3d.c index baa33d2f6f..ceddcf37a9 100644 --- a/video/d3d.c +++ b/video/d3d.c @@ -186,7 +186,7 @@ AVBufferRef *d3d9_wrap_device_ref(IDirect3DDevice9 *device) if (FAILED(hr)) goto fail; - IDirect3DDeviceManager9_ResetDevice(hwctx->devmgr, device, reset_token); + hr = IDirect3DDeviceManager9_ResetDevice(hwctx->devmgr, device, reset_token); if (FAILED(hr)) goto fail; diff --git a/video/out/vulkan/context.c b/video/out/vulkan/context.c index fda56bd829..5087403ade 100644 --- a/video/out/vulkan/context.c +++ b/video/out/vulkan/context.c @@ -66,7 +66,7 @@ static int vk_validate_dev(struct mp_log *log, const struct m_option *opt, goto done; devices = talloc_array(NULL, VkPhysicalDevice, num); - vkEnumeratePhysicalDevices(inst, &num, devices); + res = vkEnumeratePhysicalDevices(inst, &num, devices); if (res != VK_SUCCESS) goto done;