Bug 1328547. part 2 - remove checks for IsShutdown() which is false in DecodingState. r?kaku
MozReview-Commit-ID: CmU79bt4XoR
--- a/dom/media/MediaDecoderStateMachine.cpp
+++ b/dom/media/MediaDecoderStateMachine.cpp
@@ -1993,23 +1993,23 @@ DecodingState::Enter()
if (mMaster->CheckIfDecodeComplete()) {
SetState<CompletedState>();
return;
}
mOnAudioPopped = AudioQueue().PopEvent().Connect(
OwnerThread(), [this] () {
- if (!mMaster->IsShutdown() && mMaster->NeedToDecodeAudio()) {
+ if (mMaster->NeedToDecodeAudio()) {
mMaster->EnsureAudioDecodeTaskQueued();
}
});
mOnVideoPopped = VideoQueue().PopEvent().Connect(
OwnerThread(), [this] () {
- if (!mMaster->IsShutdown() && mMaster->NeedToDecodeVideo()) {
+ if (mMaster->NeedToDecodeVideo()) {
mMaster->EnsureVideoDecodeTaskQueued();
}
});
mMaster->UpdateNextFrameStatus(MediaDecoderOwner::NEXT_FRAME_AVAILABLE);
mDecodeStartTime = TimeStamp::Now();