From bda1dcaa78829e35e653692b77129d262a1cf522 Mon Sep 17 00:00:00 2001 From: llyyr Date: Thu, 11 Jun 2026 08:13:40 +0530 Subject: [PATCH] video/gpu/lcms,vo_gpu_next: avoid returning bool from pointer functions --- video/out/gpu/lcms.c | 6 +++--- video/out/vo_gpu_next.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/video/out/gpu/lcms.c b/video/out/gpu/lcms.c index 4792cba432..e866e4d498 100644 --- a/video/out/gpu/lcms.c +++ b/video/out/gpu/lcms.c @@ -252,7 +252,7 @@ static cmsHPROFILE get_vid_profile(struct gl_lcms *p, cmsContext cms, const int intent = PL_INTENT_RELATIVE_COLORIMETRIC; cmsCIEXYZ bp_XYZ; if (!cmsDetectBlackPoint(&bp_XYZ, disp_profile, intent, 0)) - return false; + return NULL; // Map this XYZ value back into the (linear) source space cmsHPROFILE rev_profile; @@ -267,7 +267,7 @@ static cmsHPROFILE get_vid_profile(struct gl_lcms *p, cmsContext cms, cmsCloseProfile(rev_profile); cmsCloseProfile(xyz_profile); if (!xyz2src) - return false; + return NULL; cmsDoTransform(xyz2src, &bp_XYZ, src_black, 1); cmsDeleteTransform(xyz2src); @@ -291,7 +291,7 @@ static cmsHPROFILE get_vid_profile(struct gl_lcms *p, cmsContext cms, } if (!tonecurve[0]) - return false; + return NULL; if (!tonecurve[1]) tonecurve[1] = tonecurve[0]; if (!tonecurve[2]) tonecurve[2] = tonecurve[0]; diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index 451c25e576..308a9fb02f 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -627,7 +627,7 @@ static pl_tex hwdec_get_tex(struct priv *p, int n) #endif MP_ERR(p, "Failed mapping hwdec frame? Open a bug!\n"); - return false; + return NULL; } static bool hwdec_acquire(pl_gpu gpu, struct pl_frame *frame)