Bug 1215439 - Don't call ResetDecode() in the destructor of MediaDecoderReader. r=gerald.
authorJW Wang <jwwang@mozilla.com>
Mon, 19 Oct 2015 13:57:53 +0800
changeset 268233 8aa35040b3bf1a26996507b5c12da60d18a65b79
parent 268232 2775215bf67e95fabe243c9aba35efbdf61eb19c
child 268234 253a4531bd42794f58b46e390588dfcf81ec7238
push id66749
push userjwwang@mozilla.com
push dateMon, 19 Oct 2015 05:58:35 +0000
treeherdermozilla-inbound@8aa35040b3bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgerald
bugs1215439
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1215439 - Don't call ResetDecode() in the destructor of MediaDecoderReader. r=gerald.
dom/media/MediaDecoderReader.cpp
--- a/dom/media/MediaDecoderReader.cpp
+++ b/dom/media/MediaDecoderReader.cpp
@@ -99,17 +99,16 @@ MediaDecoderReader::InitializationTask()
 
   // Initialize watchers.
   mWatchManager.Watch(mDuration, &MediaDecoderReader::UpdateBuffered);
 }
 
 MediaDecoderReader::~MediaDecoderReader()
 {
   MOZ_ASSERT(mShutdown);
-  ResetDecode();
   MOZ_COUNT_DTOR(MediaDecoderReader);
 }
 
 size_t MediaDecoderReader::SizeOfVideoQueueInBytes() const
 {
   VideoQueueMemoryFunctor functor;
   mVideoQueue.LockedForEach(functor);
   return functor.mSize;