summaryrefslogtreecommitdiffstats
path: root/video/out/vulkan
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-01-08 14:02:13 -0600
committerDudemanguy <random342@airmail.cc>2023-01-08 20:42:42 +0000
commit8439c084e10fdcb60eb7c3f8f393a33d256f2e41 (patch)
tree6ae887fd1fd4bc245283fb2ff42348237079644b /video/out/vulkan
parentd73fc7912a46d4cb9c3e07f01f5ae2d64e7d9ff5 (diff)
downloadmpv-8439c084e10fdcb60eb7c3f8f393a33d256f2e41.tar.bz2
mpv-8439c084e10fdcb60eb7c3f8f393a33d256f2e41.tar.xz
wayland: make vo_wayland_reconfig a bool
This was already returning true/false but the type was int. Also simplify a few places in the wayland contexts where we can just return the value of this function instead of doing redundant checks.
Diffstat (limited to 'video/out/vulkan')
-rw-r--r--video/out/vulkan/context_wayland.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/video/out/vulkan/context_wayland.c b/video/out/vulkan/context_wayland.c
index fe20336a9e..fb6d91dacd 100644
--- a/video/out/vulkan/context_wayland.c
+++ b/video/out/vulkan/context_wayland.c
@@ -123,10 +123,7 @@ static bool resize(struct ra_ctx *ctx)
static bool wayland_vk_reconfig(struct ra_ctx *ctx)
{
- if (!vo_wayland_reconfig(ctx->vo))
- return false;
-
- return true;
+ return vo_wayland_reconfig(ctx->vo);
}
static int wayland_vk_control(struct ra_ctx *ctx, int *events, int request, void *arg)