mirror of
https://github.com/mpv-player/mpv
synced 2025-02-17 04:58:06 +00:00
vo_opengl: always print when getting embedded ICC profile data
The printout in get_vid_profile() gets skipped if icc caching has been enabled, so always print if an embedded ICC profile has been provided.
This commit is contained in:
parent
5ea390c07f
commit
e406e81477
@ -231,7 +231,7 @@ static cmsHPROFILE get_vid_profile(struct gl_lcms *p, cmsContext cms,
|
||||
cmsHPROFILE prof = cmsOpenProfileFromMemTHR(cms, p->vid_profile->data,
|
||||
p->vid_profile->size);
|
||||
if (prof) {
|
||||
MP_VERBOSE(p, "Using embedded ICC profile.\n");
|
||||
MP_VERBOSE(p, "Successfully opened embedded ICC profile\n");
|
||||
return prof;
|
||||
}
|
||||
|
||||
@ -357,6 +357,7 @@ bool gl_lcms_get_lut3d(struct gl_lcms *p, struct lut3d **result_lut3d,
|
||||
// reference here
|
||||
av_buffer_unref(&p->vid_profile);
|
||||
if (vid_profile) {
|
||||
MP_VERBOSE(p, "Got an embedded ICC profile.\n");
|
||||
p->vid_profile = av_buffer_ref(vid_profile);
|
||||
if (!p->vid_profile)
|
||||
abort();
|
||||
|
Loading…
Reference in New Issue
Block a user