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

Prefer dlopen() for dynamic library loading #1227

Closed
oliv3r opened this issue Apr 29, 2024 · 0 comments
Closed

Prefer dlopen() for dynamic library loading #1227

oliv3r opened this issue Apr 29, 2024 · 0 comments

Comments

@oliv3r
Copy link

oliv3r commented Apr 29, 2024

Dynamically loading libraries has as an advantage that we do not have a hard list of dependencies. This is especially true for snapclient on embedded devices, where there may not be enough room for all the decoders. but bandwidth might be less of a concern. Also just having one (small) codec installed would then still be nicer then needing everything.

To achieve this, dlopen() could be used, by checking if a library exists/can be found, and if so, load the library. Actually, the library could only be loaded when a server actually requests a stream in that format, reducing memory by not loading all libraries into ram as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants