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:
parent
ff1b5432e7
commit
aeea250ab3
@ -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: ;
|
||||
|
Loading…
Reference in New Issue
Block a user