mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-10-26 05:50:05 +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
|
#ifdef HAVE_AML
|
||||||
if (std || strcmp(name, "aml") == 0) {
|
if (std || strcmp(name, "aml") == 0) {
|
||||||
void *handle = dlopen("libmoonlight-aml.so", RTLD_NOW | RTLD_GLOBAL);
|
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)
|
if (handle != NULL && access("/dev/amvideo", F_OK) != -1)
|
||||||
return AML;
|
return AML;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user