Bug 1209806: P2. Initialize PDM before attempting to use it. r=gerald
authorJean-Yves Avenard <jyavenard@mozilla.com>
Thu, 01 Oct 2015 16:39:58 +1000
changeset 265587 9d7b74d45f717424a4145d1dfcfdd93e6b2f903e
parent 265586 95fd37cd9c3eb82a847740ce9a07f94fc7c5702b
child 265588 47db8328de21030fcb400dad20c1569618bafc26
push id15472
push usercbook@mozilla.com
push dateFri, 02 Oct 2015 11:51:34 +0000
treeherderfx-team@2c33ef6b27e0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgerald
bugs1209806
milestone44.0a1
Bug 1209806: P2. Initialize PDM before attempting to use it. r=gerald
dom/media/fmp4/MP4Decoder.cpp
--- a/dom/media/fmp4/MP4Decoder.cpp
+++ b/dom/media/fmp4/MP4Decoder.cpp
@@ -164,16 +164,17 @@ MP4Decoder::CanHandleMediaType(const nsA
 }
 
 static bool
 IsFFmpegAvailable()
 {
 #ifndef MOZ_FFMPEG
   return false;
 #else
+  PlatformDecoderModule::Init();
   nsRefPtr<PlatformDecoderModule> m = FFmpegRuntimeLinker::CreateDecoderModule();
   return !!m;
 #endif
 }
 
 static bool
 IsAppleAvailable()
 {