зеркало из https://github.com/mozilla/gecko-dev.git
Bug 469598 - nsHTMLMediaElement::MetadataLoaded calls nsMediaDecoder::Seek(0) - r=doublec sr=roc
This commit is contained in:
Родитель
616bd4a9ee
Коммит
a8eb9352b0
|
@ -688,8 +688,6 @@ void nsHTMLMediaElement::MetadataLoaded()
|
|||
mNetworkState = nsIDOMHTMLMediaElement::LOADED_METADATA;
|
||||
DispatchAsyncSimpleEvent(NS_LITERAL_STRING("durationchange"));
|
||||
DispatchAsyncSimpleEvent(NS_LITERAL_STRING("loadedmetadata"));
|
||||
// TODO: Seek to the start time, as set in the start attribute.
|
||||
mDecoder->Seek(0.0);
|
||||
}
|
||||
|
||||
void nsHTMLMediaElement::FirstFrameLoaded()
|
||||
|
|
|
@ -1287,10 +1287,6 @@ nsresult nsOggDecoder::Seek(float aTime)
|
|||
if (aTime < 0.0)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
if (mPlayState == PLAY_STATE_LOADING && aTime == 0.0) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
mRequestedSeekTime = aTime;
|
||||
|
||||
// If we are already in the seeking state, then setting mRequestedSeekTime
|
||||
|
|
Загрузка…
Ссылка в новой задаче