From 624fe1736ea9d088bfa1490d60a31868418561fc Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 30 Mar 2013 03:29:54 +0100 Subject: gl_lcms: fix compilation when lcms2 is not available --- video/out/gl_lcms.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/video/out/gl_lcms.c b/video/out/gl_lcms.c index af639d50af..6cded6cd09 100644 --- a/video/out/gl_lcms.c +++ b/video/out/gl_lcms.c @@ -21,7 +21,6 @@ */ #include -#include #include "talloc.h" @@ -36,6 +35,10 @@ #include "gl_video.h" #include "gl_lcms.h" +#ifdef CONFIG_LCMS2 + +#include + static bool parse_3dlut_size(const char *s, int *p1, int *p2, int *p3) { if (sscanf(s, "%dx%dx%d", p1, p2, p3) != 3) @@ -73,8 +76,6 @@ const struct m_sub_options mp_icc_conf = { }, }; -#ifdef CONFIG_LCMS2 - static void lcms2_error_handler(cmsContext ctx, cmsUInt32Number code, const char *msg) { @@ -203,6 +204,12 @@ error_exit: #else /* CONFIG_LCMS2 */ +const struct m_sub_options mp_icc_conf = { + .opts = (m_option_t[]) { {0} }, + .size = sizeof(struct mp_icc_opts), + .defaults = &(const struct mp_icc_opts) {0}, +}; + struct lut3d *mp_load_icc(struct mp_icc_opts *opts) { mp_msg(MSGT_VO, MSGL_FATAL, "[gl] LCMS2 support not compiled.\n"); -- cgit v1.2.3