lazy load libamcodec, only require libamcodec.so

This commit is contained in:
TheChoconut
2022-11-18 00:44:57 +01:00
committed by Cameron Gutman
parent e7c611bb1e
commit 5c23f0494d
2 changed files with 3 additions and 15 deletions

View File

@@ -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;
}