summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2019-09-01 09:12:06 +0200
committerDamiano Galassi <[email protected]>2019-09-01 09:12:06 +0200
commit5eede914b207d91c5348777a88c8099b2bed8fd8 (patch)
treec44e7b1f585f8b4539c1b39b4c204b847e45a5ba /macosx
parent72f9d1279ca75cbe9d85c5fcfc90121a7aa2b85a (diff)
MacGui: print dlopen error message.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/HBCore.m15
1 files changed, 15 insertions, 0 deletions
diff --git a/macosx/HBCore.m b/macosx/HBCore.m
index 51f91c5d9..e4df14cbd 100644
--- a/macosx/HBCore.m
+++ b/macosx/HBCore.m
@@ -210,10 +210,18 @@ typedef void (^HBCoreCleanupHandler)(void);
if (detector.isVideoDVD)
{
lib = dlopen("libdvdcss.2.dylib", RTLD_LAZY);
+ if (!lib)
+ {
+ lib = dlopen("/usr/local/lib/libdvdcss.2.dylib", RTLD_LAZY);
+ }
}
else if (detector.isVideoBluRay)
{
lib = dlopen("libaacs.dylib", RTLD_LAZY);
+ if (!lib)
+ {
+ lib = dlopen("/usr/local/lib/libaacs.dylib", RTLD_LAZY);
+ }
}
if (lib)
@@ -223,6 +231,13 @@ typedef void (^HBCoreCleanupHandler)(void);
}
else
{
+ const char *dlError = dlerror();
+
+ if (dlError)
+ {
+ [HBUtilities writeToActivityLog:"dlopen error: %s", dlError];
+ }
+
// Notify the user that we don't support removal of copy protection.
[HBUtilities writeToActivityLog:"%s, library not found for decrypting physical disc", self.name.UTF8String];