зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1322799 part 8 - move AccurateSeekTask::MaybeFinishSeek(); r=jwwang
MozReview-Commit-ID: HGcK5zUxyge --HG-- extra : rebase_source : a01d897fd07aaaf339627a8bc8c1751dcedac68d
This commit is contained in:
Родитель
b7ca8de04f
Коммит
08b2c3900e
|
@ -132,13 +132,4 @@ AccurateSeekTask::Seek(const media::TimeUnit& aDuration)
|
|||
return mSeekTaskPromise.Ensure(__func__);
|
||||
}
|
||||
|
||||
void
|
||||
AccurateSeekTask::MaybeFinishSeek()
|
||||
{
|
||||
AssertOwnerThread();
|
||||
if (mDoneAudioSeeking && mDoneVideoSeeking) {
|
||||
Resolve(__func__); // Call to MDSM::SeekCompleted();
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace mozilla
|
||||
|
|
|
@ -43,8 +43,6 @@ public:
|
|||
|
||||
~AccurateSeekTask();
|
||||
|
||||
void MaybeFinishSeek();
|
||||
|
||||
/*
|
||||
* Internal state.
|
||||
*/
|
||||
|
|
|
@ -928,7 +928,7 @@ public:
|
|||
RequestAudioData();
|
||||
return;
|
||||
}
|
||||
mTask->MaybeFinishSeek();
|
||||
MaybeFinishSeek();
|
||||
}
|
||||
|
||||
void HandleVideoDecoded(MediaData* aVideo, TimeStamp aDecodeStart) override
|
||||
|
@ -961,7 +961,7 @@ public:
|
|||
RequestVideoData();
|
||||
return;
|
||||
}
|
||||
mTask->MaybeFinishSeek();
|
||||
MaybeFinishSeek();
|
||||
}
|
||||
|
||||
void HandleNotDecoded(MediaData::Type aType, const MediaResult& aError) override
|
||||
|
@ -1004,7 +1004,7 @@ public:
|
|||
mTask->mSeekedVideoData = mTask->mFirstVideoFrameAfterSeek.forget();
|
||||
}
|
||||
}
|
||||
mTask->MaybeFinishSeek();
|
||||
MaybeFinishSeek();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1245,6 +1245,13 @@ private:
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
void MaybeFinishSeek()
|
||||
{
|
||||
if (mTask->mDoneAudioSeeking && mTask->mDoneVideoSeeking) {
|
||||
mTask->Resolve(__func__); // Call to MDSM::SeekCompleted();
|
||||
}
|
||||
}
|
||||
|
||||
void OnSeekTaskResolved(const SeekTaskResolveValue& aValue)
|
||||
{
|
||||
mSeekTaskRequest.Complete();
|
||||
|
|
Загрузка…
Ссылка в новой задаче