added error message if aml .so is not loaded

This commit is contained in:
Adrian Cuzman
2018-04-11 12:38:11 +03:00
parent 1d63640702
commit 7c5c5a0528

View File

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