Skip to content

Commit

Permalink
renderer: don't attempt opening ICC profile without support
Browse files Browse the repository at this point in the history
Prevent log spam.
  • Loading branch information
haasn committed Oct 22, 2023
1 parent bb9e2f3 commit 425d680
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/renderer.c
Original file line number Diff line number Diff line change
Expand Up @@ -2875,12 +2875,14 @@ static void icc_fallback(struct pass_state *pass, struct pl_frame *frame,
return;
}

#ifdef PL_HAVE_LCMS
if (pl_icc_update(rr->log, &fallback->icc, &frame->profile, NULL)) {
frame->icc = fallback->icc;
} else {
PL_WARN(rr, "Failed opening ICC profile... ignoring");
fallback->error = frame->profile.signature;
}
#endif
}

static void pass_fix_frames(struct pass_state *pass)
Expand Down

0 comments on commit 425d680

Please sign in to comment.