mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-12 10:56:04 +00:00
lazy load libamcodec, only require libamcodec.so
This commit is contained in:
committed by
Cameron Gutman
parent
e7c611bb1e
commit
5c23f0494d
@@ -61,7 +61,7 @@ enum platform platform_check(char* name) {
|
||||
#endif
|
||||
#ifdef HAVE_AML
|
||||
if (std || strcmp(name, "aml") == 0) {
|
||||
void *handle = dlopen("libmoonlight-aml.so", RTLD_NOW | RTLD_GLOBAL);
|
||||
void *handle = dlopen("libmoonlight-aml.so", RTLD_LAZY | RTLD_GLOBAL);
|
||||
if (handle != NULL && access("/dev/amvideo", F_OK) != -1)
|
||||
return AML;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user