Bug 1124952 - Set request status to Pending in the special DecodeFirstFrame calls too. r=cpearce, a=sledru
authorBobby Holley <bobbyholley@gmail.com>
Mon, 26 Jan 2015 15:59:44 -0800
changeset 243095 b0220b627748
parent 243094 a6f725c23d30
child 243096 608e290ece63
push id4402
push userryanvm@gmail.com
push date2015-01-29 16:16 +0000
treeherdermozilla-beta@e25b169e456b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpearce, sledru
bugs1124952
milestone36.0
Bug 1124952 - Set request status to Pending in the special DecodeFirstFrame calls too. r=cpearce, a=sledru
dom/media/MediaDecoderStateMachine.cpp
--- a/dom/media/MediaDecoderStateMachine.cpp
+++ b/dom/media/MediaDecoderStateMachine.cpp
@@ -2271,23 +2271,25 @@ MediaDecoderStateMachine::DecodeFirstFra
     // We're resuming from dormant state, so we don't need to request
     // the first samples in order to determine the media start time,
     // we have the start time from last time we loaded.
     SetStartTime(mStartTime);
     nsresult res = FinishDecodeFirstFrame();
     NS_ENSURE_SUCCESS(res, res);
   } else {
     if (HasAudio()) {
+      mAudioRequestStatus = RequestStatus::Pending;
       ReentrantMonitorAutoExit unlock(mDecoder->GetReentrantMonitor());
       mReader->RequestAudioData()->Then(DecodeTaskQueue(), __func__, this,
                                         &MediaDecoderStateMachine::OnAudioDecoded,
                                         &MediaDecoderStateMachine::OnAudioNotDecoded);
     }
     if (HasVideo()) {
       mVideoDecodeStartTime = TimeStamp::Now();
+      mVideoRequestStatus = RequestStatus::Pending;
       ReentrantMonitorAutoExit unlock(mDecoder->GetReentrantMonitor());
       mReader->RequestVideoData(false, 0)
              ->Then(DecodeTaskQueue(), __func__, this,
                     &MediaDecoderStateMachine::OnVideoDecoded,
                     &MediaDecoderStateMachine::OnVideoNotDecoded);
     }
   }