Bug 1254858: P7. Add logging if libmozav can't be found. r=kentuckyfriedtakahe a=ritu
authorJean-Yves Avenard <jyavenard@mozilla.com>
Thu, 10 Mar 2016 15:02:40 +1100
changeset 323723 234a58549e11fa481e9e0821f1775600e4ade38b
parent 323722 ed3b972887c065357ea93ce31fa21d5de013579c
child 323724 b00d99ebc124a8ed68de5dfe6ee130bc6072d780
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskentuckyfriedtakahe, ritu
bugs1254858
milestone47.0a2
Bug 1254858: P7. Add logging if libmozav can't be found. r=kentuckyfriedtakahe a=ritu MozReview-Commit-ID: C4m54MMJdr
dom/media/platforms/ffmpeg/ffvpx/FFVPXRuntimeLinker.cpp
--- a/dom/media/platforms/ffmpeg/ffvpx/FFVPXRuntimeLinker.cpp
+++ b/dom/media/platforms/ffmpeg/ffvpx/FFVPXRuntimeLinker.cpp
@@ -27,17 +27,21 @@ FFVPXRuntimeLinker::LinkStatus FFVPXRunt
   LinkStatus_INIT;
 
 static PRLibrary*
 MozAVLink(const char* aName)
 {
   PRLibSpec lspec;
   lspec.type = PR_LibSpec_Pathname;
   lspec.value.pathname = aName;
-  return PR_LoadLibraryWithFlags(lspec, PR_LD_NOW | PR_LD_LOCAL);
+  PRLibrary* lib = PR_LoadLibraryWithFlags(lspec, PR_LD_NOW | PR_LD_LOCAL);
+  if (!lib) {
+    FFMPEG_LOG("unable to load library %s", aName);
+  }
+  return lib;
 }
 
 /* static */ bool
 FFVPXRuntimeLinker::Init()
 {
   if (sLinkStatus) {
     return sLinkStatus == LinkStatus_SUCCEEDED;
   }