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 243588 5e118e867ccf
parent 243587 7436b2d2e790
child 243589 347c33a663de
push id4405
push userrgiles@mozilla.com
push date2015-01-29 19:44 +0000
treeherdermozilla-beta@5e118e867ccf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpearce, sledru
bugs1125472
milestone36.0
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
@@ -2748,16 +2748,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: {