summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.c
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-01-08 13:16:47 -0600
committerDudemanguy <random342@airmail.cc>2023-01-08 20:42:42 +0000
commite4e0e7dfcf3a79f7bb510e11d059bcf8d1e93bd6 (patch)
tree8a26c42915f9d7f1a32a1162a4b96aaefcab4296 /video/out/wayland_common.c
parente43393c4da0c72dd974cc5ff08952f7614b3958f (diff)
downloadmpv-e4e0e7dfcf3a79f7bb510e11d059bcf8d1e93bd6.tar.bz2
mpv-e4e0e7dfcf3a79f7bb510e11d059bcf8d1e93bd6.tar.xz
vo: change vo_platform_init to bool
There's several functions that are used for initializing mpv on a certain platform (x11, wayland, etc.). These currently are all int, but they actually return 1 and 0 like a boolean. This gets a bit confusing because actual vo preinit functions return 0 and -1 instead. Just make these all bool instead and return true/false to make it clearer.
Diffstat (limited to 'video/out/wayland_common.c')
-rw-r--r--video/out/wayland_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index 183458cc29..ed7e68c9ad 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -1929,7 +1929,7 @@ int vo_wayland_control(struct vo *vo, int *events, int request, void *arg)
return VO_NOTIMPL;
}
-int vo_wayland_init(struct vo *vo)
+bool vo_wayland_init(struct vo *vo)
{
vo->wl = talloc_zero(NULL, struct vo_wayland_state);
struct vo_wayland_state *wl = vo->wl;