Bug 679262 - Seeking to end of file during loadedmetadata event breaks further playback - r=cpearce

--HG--
extra : rebase_source : 1ecffe9613128724e38060d44a46a5bdbcc6fb18
This commit is contained in:
Chris Double 2011-08-29 13:35:52 +12:00
parent 017ca5a5d8
commit 6282bd0d7d
2 changed files with 3 additions and 3 deletions

View File

@ -780,8 +780,8 @@ void nsBuiltinDecoder::SeekingStoppedAtEnd()
seekWasAborted = PR_TRUE; seekWasAborted = PR_TRUE;
} else { } else {
UnpinForSeek(); UnpinForSeek();
fireEnded = mNextState != PLAY_STATE_PLAYING; fireEnded = PR_TRUE;
ChangeState(fireEnded ? PLAY_STATE_ENDED : mNextState); ChangeState(PLAY_STATE_ENDED);
} }
} }

View File

@ -23,7 +23,7 @@ var gFragmentParams = [
{ fragment: "#t=3,3", start: null, end: null }, { fragment: "#t=3,3", start: null, end: null },
{ fragment: "#t=7,3", start: null, end: null }, { fragment: "#t=7,3", start: null, end: null },
{ fragment: "#t=7,15", start: 7, end: null }, { fragment: "#t=7,15", start: 7, end: null },
{ fragment: "#t=15,20", start: 9.287981, end: null, todo: "See Bug 679262" }, { fragment: "#t=15,20", start: 9.287981, end: null },
{ fragment: "#t=5", start: 5, end: null }, { fragment: "#t=5", start: 5, end: null },
{ fragment: "#t=5.5", start: 5.5, end: null }, { fragment: "#t=5.5", start: 5.5, end: null },
{ fragment: "#t=5,", start: null, end: null }, { fragment: "#t=5,", start: null, end: null },