1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-13 10:26:09 +00:00

vo_opengl: gl_lcms: minor simplification

This commit is contained in:
wm4 2015-05-02 16:34:52 +02:00
parent ff1b5432e7
commit aeea250ab3

View File

@ -296,13 +296,12 @@ bool gl_lcms_get_lut3d(struct gl_lcms *p, struct lut3d **result_lut3d)
cmsDeleteTransform(trafo);
if (cache_file) {
char *fname = mp_get_user_path(NULL, p->global, cache_file);
char *fname = mp_get_user_path(tmp, p->global, cache_file);
FILE *out = fopen(fname, "wb");
if (out) {
fwrite(output, talloc_get_size(output), 1, out);
fclose(out);
}
talloc_free(fname);
}
done: ;