mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-10-21 15:57:32 +00:00
added error message if aml .so is not loaded
This commit is contained in:
1 parent
1d63640702
commit
7c5c5a0528
1 file changed
+3
@@ -55,6 +55,9 @@ enum platform platform_check(char* name) {
|
||||
#ifdef HAVE_AML
|
||||
if (std || strcmp(name, "aml") == 0) {
|
||||
void *handle = dlopen("libmoonlight-aml.so", RTLD_NOW | RTLD_GLOBAL);
|
||||
if (handle == NULL){
|
||||
fprintf(stderr, "Error loading libmoonlight-aml.so \n");
|
||||
}
|
||||
if (handle != NULL && access("/dev/amvideo", F_OK) != -1)
|
||||
return AML;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user