diff options
author | Dudemanguy <random342@airmail.cc> | 2023-01-08 13:16:47 -0600 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-01-08 20:42:42 +0000 |
commit | e4e0e7dfcf3a79f7bb510e11d059bcf8d1e93bd6 (patch) | |
tree | 8a26c42915f9d7f1a32a1162a4b96aaefcab4296 /video/out/wayland_common.h | |
parent | e43393c4da0c72dd974cc5ff08952f7614b3958f (diff) | |
download | mpv-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.h')
-rw-r--r-- | video/out/wayland_common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h index ef156f1fca..b7f2e4645d 100644 --- a/video/out/wayland_common.h +++ b/video/out/wayland_common.h @@ -153,11 +153,11 @@ struct vo_wayland_state { }; bool vo_wayland_check_visible(struct vo *vo); +bool vo_wayland_init(struct vo *vo); bool vo_wayland_supported_format(struct vo *vo, uint32_t format, uint64_t modifier); int vo_wayland_allocate_memfd(struct vo *vo, size_t size); int vo_wayland_control(struct vo *vo, int *events, int request, void *arg); -int vo_wayland_init(struct vo *vo); int vo_wayland_reconfig(struct vo *vo); void vo_wayland_set_opaque_region(struct vo_wayland_state *wl, int alpha); |