Bug 469598 - nsHTMLMediaElement::MetadataLoaded calls nsMediaDecoder::Seek(0) - r=doublec sr=roc

This commit is contained in:
Matthew Gregan 2008-12-15 15:12:52 +13:00
parent 587e3fcdf2
commit d69380b6d1
2 changed files with 0 additions and 6 deletions

View File

@ -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()

View File

@ -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