Bug 1128113 - Skip mSharedDecoderManager which is part of MozMP4. r=jya, a=sledru
authorNaoki Hirata <nhirata@mozilla.com>
Sat, 31 Jan 2015 02:22:38 -0800
changeset 240475 8f3d1a85d073ac0a9b89e66a9579e39e424a5a62
parent 240474 a053874061587604b54f8e54d629902dfb85cf73
child 240476 4811407460e6a3d438a324ab299456dafc4c0844
push id7562
push userrgiles@mozilla.com
push dateTue, 03 Feb 2015 18:19:12 +0000
treeherdermozilla-aurora@8f3d1a85d073 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjya, sledru
bugs1128113
milestone37.0a2
Bug 1128113 - Skip mSharedDecoderManager which is part of MozMP4. r=jya, a=sledru
dom/media/mediasource/MediaSourceReader.cpp
--- a/dom/media/mediasource/MediaSourceReader.cpp
+++ b/dom/media/mediasource/MediaSourceReader.cpp
@@ -394,20 +394,22 @@ MediaSourceReader::ContinueShutdown()
     return;
   }
 
   mAudioTrack = nullptr;
   mAudioReader = nullptr;
   mVideoTrack = nullptr;
   mVideoReader = nullptr;
 
+#ifdef MOZ_FMP4
   if (mSharedDecoderManager) {
     mSharedDecoderManager->Shutdown();
     mSharedDecoderManager = nullptr;
   }
+#endif
 
   MOZ_ASSERT(mAudioPromise.IsEmpty());
   MOZ_ASSERT(mVideoPromise.IsEmpty());
 
   mAudioWaitPromise.RejectIfExists(WaitForDataRejectValue(MediaData::AUDIO_DATA, WaitForDataRejectValue::SHUTDOWN), __func__);
   mVideoWaitPromise.RejectIfExists(WaitForDataRejectValue(MediaData::VIDEO_DATA, WaitForDataRejectValue::SHUTDOWN), __func__);
 
   MediaDecoderReader::Shutdown()->ChainTo(mMediaSourceShutdownPromise.Steal(), __func__);