lcms: don't warn/error on 3dlut cache misses
Cache misses are a normal and expected part of the operation of a cache. It doesn't really make sense to show a user-visible warning for them. To work-around this, just skip trying to open the cache if it doesn't exist yet.
This commit is contained in:
1 parent
9054460bba
commit
86b5f1463c
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user