зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1299387 - check the duration instead of mState to match the comment. r=kaku
MozReview-Commit-ID: E1MgKHDIRAq --HG-- extra : rebase_source : ccdd715392571e80e803810179eafe857f5bf71b
This commit is contained in:
Родитель
370905b797
Коммит
9b63ba4dc6
|
@ -1499,8 +1499,7 @@ MediaDecoderStateMachine::Seek(SeekTarget aTarget)
|
|||
return MediaDecoder::SeekPromise::CreateAndReject(/* aIgnored = */ true, __func__);
|
||||
}
|
||||
|
||||
MOZ_ASSERT(mState > DECODER_STATE_DECODING_METADATA,
|
||||
"We should have got duration already");
|
||||
MOZ_ASSERT(mDuration.Ref().isSome(), "We should have got duration already");
|
||||
|
||||
// Can't seek until the start time is known.
|
||||
bool hasStartTime = mSentFirstFrameLoadedEvent || mReader->ForceZeroStartTime();
|
||||
|
|
Загрузка…
Ссылка в новой задаче