summaryrefslogtreecommitdiffstats
path: root/video/out/x11_common.h
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/x11_common.h
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/x11_common.h')
-rw-r--r--video/out/x11_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/x11_common.h b/video/out/x11_common.h
index 0134935daa..48516a77ad 100644
--- a/video/out/x11_common.h
+++ b/video/out/x11_common.h
@@ -142,7 +142,7 @@ struct vo_x11_state {
Atom icc_profile_property;
};
-int vo_x11_init(struct vo *vo);
+bool vo_x11_init(struct vo *vo);
void vo_x11_uninit(struct vo *vo);
void vo_x11_check_events(struct vo *vo);
bool vo_x11_screen_is_composited(struct vo *vo);