Bug 1125472 - Reset video request status on reset decode. r=cpearce a=sledru
authorSotaro Ikeda <sotaro.ikeda.g@gmail.com>
Thu, 29 Jan 2015 21:50:20 +1300
changeset 249480 2822ac22aae1bedbf388bcc3b7a29428bf257484
parent 249479 bc8330374bd74733b2fa6d46a42863a82d82df76
child 249481 02ea301be04129cba2858ccbd4e0057a036f5c64
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpearce, sledru
bugs1125472
milestone37.0a2
Bug 1125472 - Reset video request status on reset decode. r=cpearce a=sledru
dom/media/MediaDecoderStateMachine.cpp
--- a/dom/media/MediaDecoderStateMachine.cpp
+++ b/dom/media/MediaDecoderStateMachine.cpp
@@ -2767,16 +2767,18 @@ nsresult MediaDecoderStateMachine::RunSt
       // mPendingWakeDecoder being needed again. Revoke it.
       mPendingWakeDecoder = nullptr;
       {
         ReentrantMonitorAutoExit exitMon(mDecoder->GetReentrantMonitor());
         // Wait for the thread decoding, if any, to exit.
         DecodeTaskQueue()->AwaitIdle();
         mReader->ReleaseMediaResources();
       }
+      mAudioRequestStatus = RequestStatus::Idle;
+      mVideoRequestStatus = RequestStatus::Idle;
       return NS_OK;
     }
 
     case DECODER_STATE_WAIT_FOR_RESOURCES: {
       return NS_OK;
     }
 
     case DECODER_STATE_DECODING_NONE: {