diff --git a/dom/media/MediaDecoder.cpp b/dom/media/MediaDecoder.cpp index cf43fa56e8..f54e0ff3c9 100644 --- a/dom/media/MediaDecoder.cpp +++ b/dom/media/MediaDecoder.cpp @@ -1320,7 +1320,7 @@ void MediaDecoder::ApplyStateToStateMachine(PlayState aState) mDecoderStateMachine.get(), __func__, &MediaDecoderStateMachine::Seek, mRequestedSeekTarget) ->Then(AbstractThread::MainThread(), __func__, this, - &MediaDecoder::OnSeekResolved, &MediaDecoder::OnSeekRejected)); + &MediaDecoder::OnSeekResolved, &MediaDecoder::OnSeekRejected)); mRequestedSeekTarget.Reset(); break; default: diff --git a/dom/media/MediaDecoderStateMachine.cpp b/dom/media/MediaDecoderStateMachine.cpp index 7801a63b6b..7eaa2db79f 100644 --- a/dom/media/MediaDecoderStateMachine.cpp +++ b/dom/media/MediaDecoderStateMachine.cpp @@ -937,15 +937,15 @@ MediaDecoderStateMachine::OnNotDecoded(MediaData::Type aType, WaitRequestRef(aType).Begin(ProxyMediaCall(DecodeTaskQueue(), mReader.get(), __func__, &MediaDecoderReader::WaitForData, aType) ->Then(TaskQueue(), __func__, - [self] (MediaData::Type aType) -> void { - ReentrantMonitorAutoEnter mon(self->mDecoder->GetReentrantMonitor()); - self->WaitRequestRef(aType).Complete(); - self->DispatchDecodeTasksIfNeeded(); - }, - [self] (WaitForDataRejectValue aRejection) -> void { - ReentrantMonitorAutoEnter mon(self->mDecoder->GetReentrantMonitor()); - self->WaitRequestRef(aRejection.mType).Complete(); - })); + [self] (MediaData::Type aType) -> void { + ReentrantMonitorAutoEnter mon(self->mDecoder->GetReentrantMonitor()); + self->WaitRequestRef(aType).Complete(); + self->DispatchDecodeTasksIfNeeded(); + }, + [self] (WaitForDataRejectValue aRejection) -> void { + ReentrantMonitorAutoEnter mon(self->mDecoder->GetReentrantMonitor()); + self->WaitRequestRef(aRejection.mType).Complete(); + })); return; }