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/android_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/android_common.h')
-rw-r--r-- | video/out/android_common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/android_common.h b/video/out/android_common.h index 44f5aefe3a..7f075ea33a 100644 --- a/video/out/android_common.h +++ b/video/out/android_common.h @@ -23,7 +23,7 @@ struct vo; -int vo_android_init(struct vo *vo); +bool vo_android_init(struct vo *vo); void vo_android_uninit(struct vo *vo); ANativeWindow *vo_android_native_window(struct vo *vo); bool vo_android_surface_size(struct vo *vo, int *w, int *h); |