From f509a2badb80f9d80ad72ae219b47612cc054218 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 2 May 2015 16:36:31 +0200 Subject: vo_opengl: gl_lcms: create cache dir Minor user convenience. --- video/out/gl_lcms.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/video/out/gl_lcms.c b/video/out/gl_lcms.c index 6d7b68a0bd..2b20d04426 100644 --- a/video/out/gl_lcms.c +++ b/video/out/gl_lcms.c @@ -230,6 +230,8 @@ bool gl_lcms_get_lut3d(struct gl_lcms *p, struct lut3d **result_lut3d) for (int i = 0; i < sizeof(hash); i++) cache_file = talloc_asprintf_append(cache_file, "%02X", hash[i]); cache_file = mp_path_join(tmp, bstr0(p->opts.cache_dir), bstr0(cache_file)); + + mp_mkdirp(p->opts.cache_dir); } // check cache -- cgit v1.2.3