OSDN Git Service

If dlopen("libwvm.so") fails, log the reason why.
authorElliott Hughes <enh@google.com>
Wed, 23 Oct 2013 17:03:20 +0000 (10:03 -0700)
committerElliott Hughes <enh@google.com>
Wed, 23 Oct 2013 17:03:20 +0000 (10:03 -0700)
Bug: 11342992
Change-Id: I99986b6181df6d7615fdc1520d2edaadaccd9bb4

media/libstagefright/WVMExtractor.cpp

index 5ae80cc..bc48272 100644 (file)
@@ -76,7 +76,7 @@ static void init_routine()
 {
     gVendorLibHandle = dlopen("libwvm.so", RTLD_NOW);
     if (gVendorLibHandle == NULL) {
-        ALOGE("Failed to open libwvm.so");
+        ALOGE("Failed to open libwvm.so: %s", dlerror());
     }
 }