bug 1081766 don't clear mTrackBuffers in Shutdown so that BreakCycles can recurse r=kinetik
authorKarl Tomlinson <karlt+@karlt.net>
Fri, 10 Oct 2014 18:27:19 +1300
changeset 210652 3a3d2d09ccca24362eb2cdfd81834f5bea8a823d
parent 210651 a5eca3f1dee878b7d183ef72b5a0b6ea5c84abf2
child 210653 bfd5484930fd813da62477e7ed7aeaf1bd68c881
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewerskinetik
bugs1081766
milestone36.0a1
bug 1081766 don't clear mTrackBuffers in Shutdown so that BreakCycles can recurse r=kinetik
content/media/mediasource/MediaSourceReader.cpp
--- a/content/media/mediasource/MediaSourceReader.cpp
+++ b/content/media/mediasource/MediaSourceReader.cpp
@@ -204,17 +204,16 @@ MediaSourceReader::Shutdown()
   MediaDecoderReader::Shutdown();
   for (uint32_t i = 0; i < mTrackBuffers.Length(); ++i) {
     mTrackBuffers[i]->Shutdown();
   }
   mAudioTrack = nullptr;
   mAudioReader = nullptr;
   mVideoTrack = nullptr;
   mVideoReader = nullptr;
-  mTrackBuffers.Clear();
 }
 
 void
 MediaSourceReader::BreakCycles()
 {
   MediaDecoderReader::BreakCycles();
 
   // These were cleared in Shutdown().