Bug 1331554. Part 2 - remove the call to ScheduleUpdate(). r?jya draft
authorJW Wang <jwwang@mozilla.com>
Mon, 16 Jan 2017 15:21:45 +0800
changeset 462368 a610694bfb7a7d58c7633913d4ac1ce33f46bcd2
parent 462367 ec68e23b75cc3e4ffcc1304a8f74b8b7348bd8f6
child 462369 114cf53b604d70c75cf2b2d1970b6867c763a6bc
push id41718
push userjwwang@mozilla.com
push dateTue, 17 Jan 2017 06:24:55 +0000
reviewersjya
bugs1331554
milestone53.0a1
Bug 1331554. Part 2 - remove the call to ScheduleUpdate(). r?jya ScheduleUpdate() will be called when we have new decoding requests. MozReview-Commit-ID: FkOc4zQmfSo
dom/media/MediaFormatReader.cpp
--- a/dom/media/MediaFormatReader.cpp
+++ b/dom/media/MediaFormatReader.cpp
@@ -2733,19 +2733,16 @@ MediaFormatReader::SetBlankDecode(TrackT
   }
 
   LOG("%s, decoder.mIsBlankDecode = %d => aIsBlankDecode = %d",
       TrackTypeToStr(aTrack), decoder.mIsBlankDecode, aIsBlankDecode);
 
   decoder.mIsBlankDecode = aIsBlankDecode;
   decoder.Flush();
   decoder.ShutdownDecoder();
-  ScheduleUpdate(TrackInfo::kVideoTrack);
-
-  return;
 }
 
 void
 MediaFormatReader::OnFirstDemuxCompleted(TrackInfo::TrackType aType,
                                          RefPtr<MediaTrackDemuxer::SamplesHolder> aSamples)
 {
   MOZ_ASSERT(OnTaskQueue());