diff options
-rw-r--r-- | video/out/opengl/lcms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/lcms.c b/video/out/opengl/lcms.c index 20ebf6fd57..62ac06de8b 100644 --- a/video/out/opengl/lcms.c +++ b/video/out/opengl/lcms.c @@ -335,7 +335,7 @@ bool gl_lcms_get_lut3d(struct gl_lcms *p, struct lut3d **result_lut3d, } // check cache - if (cache_file) { + if (cache_file && stat(cache_file, &(struct stat){0}) == 0) { MP_VERBOSE(p, "Opening 3D LUT cache in file '%s'.\n", cache_file); struct bstr cachedata = stream_read_file(cache_file, tmp, p->global, 1000000000); // 1 GB |