video/gpu/lcms,vo_gpu_next: avoid returning bool from pointer functions
This commit is contained in:
1 parent
3d4893a893
commit
bda1dcaa78
2 files changed
+4
-4
No files matched your search
@@ -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];
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user