Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lcms: always parse lcms2-related options #10895

Merged
merged 2 commits into from
Nov 21, 2022
Merged

Conversation

haasn
Copy link
Member

@haasn haasn commented Nov 19, 2022

Currently, the lcms-related options are only defined when lcms2 is enabled at build time. However, this causes issues (e.g. segfault) for vo_gpu_next, which relies on the presence of these options (to forward them to libplacebo).

(That libplacebo internally depends on lcms2 as well is an implementation detail - compiling mpv without lcms against libplacebo with lcms should be possible in principle)

Fixes: #10891
Closes: #10856

video/out/gpu/lcms.h Outdated Show resolved Hide resolved
Currently, the lcms-related options are only defined when lcms2 is
enabled at build time. However, this causes issues (e.g. segfault) for
vo_gpu_next, which relies on the presence of these options (to forward
them to libplacebo).

(That libplacebo internally depends on lcms2 as well is an
implementation detail - compiling mpv *without* lcms against libplacebo
*with* lcms should be possible in principle)

Fixes: mpv-player#10891
Closes: mpv-player#10856
video/out/gpu/lcms.c Outdated Show resolved Hide resolved
Not only was this function needlessly convoluted, it was also broken -
since it returned a bool value where an error code was expected.
@haasn haasn merged commit e1a04cd into mpv-player:master Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0.35.0: segmentation fault when trying to use --vo=gpu-next
2 participants