Bug 1222387: P1. Properly handle negative seeks when readyState is HAVE_NOTHING. r=jwwang

This commit is contained in:
Jean-Yves Avenard 2015-11-20 17:00:45 +11:00
parent 7ddd4c664c
commit ba6317c7e5

View File

@ -3442,7 +3442,7 @@ void HTMLMediaElement::MetadataLoaded(const MediaInfo* aInfo,
NotifyOwnerDocumentActivityChangedInternal();
}
if (mDefaultPlaybackStartPosition > 0) {
if (mDefaultPlaybackStartPosition != 0.0) {
SetCurrentTime(mDefaultPlaybackStartPosition);
mDefaultPlaybackStartPosition = 0.0;
}