From e08f235578aa6305a41e7c7132225e58bd191ef0 Mon Sep 17 00:00:00 2001 From: Anton Kindestam Date: Thu, 12 Sep 2019 21:00:50 +0200 Subject: drm: fix libmpv ABI breakage introduced in 351c083487050c88adb0e3d60f2174850f869018 Extending the client-allocated mpv_opengl_drm_params struct constituted a break of ABI that could cause UB. Create a clean break by deprecating "drm_params" and related structs and enum values, and replacing it with "drm_params_v2". Also fix some comments and code that wrongly assumed that open could return any other negative number than -1 for failure. This commit updates the libmpv version to 1.104 --- libmpv/client.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmpv/client.h') diff --git a/libmpv/client.h b/libmpv/client.h index 51beb1a41b..eec3d0776f 100644 --- a/libmpv/client.h +++ b/libmpv/client.h @@ -223,7 +223,7 @@ extern "C" { * relational operators (<, >, <=, >=). */ #define MPV_MAKE_VERSION(major, minor) (((major) << 16) | (minor) | 0UL) -#define MPV_CLIENT_API_VERSION MPV_MAKE_VERSION(1, 103) +#define MPV_CLIENT_API_VERSION MPV_MAKE_VERSION(1, 104) /** * The API user is allowed to "#define MPV_ENABLE_DEPRECATED 0" before -- cgit v1.2.3