-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Use dl handle for libva's vaTerminate rather than actual function #1955
Conversation
How did you come to that conclusion? |
If it was mandatory, you wouldn't load it with |
Please include these patches, if you're not already. https://github.com/LizardByte/build-deps/tree/master/ffmpeg_patches
If you're building without vaapi support... then cmake should probably just be modified to not include the vaapi.cpp source. That's what we do for cuda, drm, wayland, x11 drm: Sunshine/cmake/compile_definitions/linux.cmake Lines 101 to 119 in a6ffeb4
wayland: Sunshine/cmake/compile_definitions/linux.cmake Lines 121 to 143 in a6ffeb4
x11: Sunshine/cmake/compile_definitions/linux.cmake Lines 145 to 156 in a6ffeb4
|
I think this fix makes sense to take to allow builds that were compiled with VAAPI to be able to run without it present at runtime. It's a niche use case, but if the fix is just changing a single function call, I don't see any problem with it. For builds without VAAPI, I agree with @ReenigneArcher that we should just not compile any of the VAAPI stuff in at all. |
I'll merge this then, and work on a second PR to allow disabling vaapi with a cmake flag. |
libva is supposed to be optional.
5982888
to
99915f0
Compare
Description
libva is supposed to be optional. Building currently fails with an unresolved symbol if it is missing.
Type of Change
.github/...
)Checklist
Branch Updates
LizardByte requires that branches be up-to-date before merging. This means that after any PR is merged, this branch
must be updated before it can be merged. You must also
Allow edits from maintainers.