From 6f2a236360f71452cdc820845699204d4856414f Mon Sep 17 00:00:00 2001 From: Jean-Yves Avenard Date: Thu, 10 Mar 2016 15:02:40 +1100 Subject: [PATCH] Bug 1254858: P7. Add logging if libmozav can't be found. r=kentuckyfriedtakahe MozReview-Commit-ID: C4m54MMJdr --HG-- extra : rebase_source : 4cb6bfddbc4b2f0b0e26a6d6c09754b47167c87c --- dom/media/platforms/ffmpeg/ffvpx/FFVPXRuntimeLinker.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dom/media/platforms/ffmpeg/ffvpx/FFVPXRuntimeLinker.cpp b/dom/media/platforms/ffmpeg/ffvpx/FFVPXRuntimeLinker.cpp index 2922838a36a4..aa12ddfdc9df 100644 --- a/dom/media/platforms/ffmpeg/ffvpx/FFVPXRuntimeLinker.cpp +++ b/dom/media/platforms/ffmpeg/ffvpx/FFVPXRuntimeLinker.cpp @@ -32,7 +32,11 @@ 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