Bug 1125472 - Reset video request status on reset decode. r=cpearce
authorSotaro Ikeda <sotaro.ikeda.g@gmail.com>
Thu, 29 Jan 2015 21:50:20 +1300
changeset 226474 a607fdc02c5d5b064139f7081e8b9454d74246f6
parent 226473 176166c0bae9ee2faea56e45f78598219503d9d8
child 226475 63bccd7cd93f712693af08413a2326d0a24ebce1
push id28196
push usercbook@mozilla.com
push dateThu, 29 Jan 2015 14:04:15 +0000
treeherdermozilla-central@a98d16e6a3b4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpearce
bugs1125472
milestone38.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 1125472 - Reset video request status on reset decode. r=cpearce
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: {