1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-03 05:22:23 +00:00

gl_lcms: use thread-safe lcms API, require lcms2 2.6

The error log callback was not thread-safe and not library-safe. And
apparently there were some other details that made it not library-safe,
such as a global lcms plugin registry.

Switch the the thread-safe API provided by lcms2 starting with 2.6.
Remove our approximate thread-safety hacks.

Note that lcms basically provides 2 APIs now, the old functions, and
the thread-safe alternatives whose names end with THR. Some functions
don't change, because they already have a context of some sort. Care
must be taken not to accidentally use old APIs.
This commit is contained in:
wm4 2014-06-16 16:57:19 +02:00
parent 858d6d93cb
commit 973c1fa570
3 changed files with 18 additions and 29 deletions