mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 469598 - nsHTMLMediaElement::MetadataLoaded calls nsMediaDecoder::Seek(0) - r=doublec sr=roc
This commit is contained in:
parent
587e3fcdf2
commit
d69380b6d1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user