summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-02 16:36:31 +0200
committerwm4 <wm4@nowhere>2015-05-02 16:36:31 +0200
commitf509a2badb80f9d80ad72ae219b47612cc054218 (patch)
tree6fb9fc9498a0fecfcf6b593a129fc6e7fcb8a31c
parentdce941b99c9e098b8471528908d1509ab040b7a4 (diff)
downloadmpv-f509a2badb80f9d80ad72ae219b47612cc054218.tar.bz2
mpv-f509a2badb80f9d80ad72ae219b47612cc054218.tar.xz
vo_opengl: gl_lcms: create cache dir
Minor user convenience.
-rw-r--r--video/out/gl_lcms.c2
1 files changed, 2 insertions, 0 deletions
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