Bug 980868 - Don't skip video frame when |clock time| is less than |mVideoFrameEndTime| for we are still in the safe range without underruning video frames. r=cpearce

This commit is contained in:
JW Wang 2014-04-01 08:58:55 -04:00
parent f952f1aad2
commit 3729e45eb8
2 changed files with 3 additions and 1 deletions

View File

@ -591,6 +591,9 @@ MediaDecoderStateMachine::DecodeVideo()
((!mIsAudioPrerolling && mIsAudioDecoding &&
GetDecodedAudioDuration() < mLowAudioThresholdUsecs * mPlaybackRate) ||
(!mIsVideoPrerolling && mIsVideoDecoding &&
// don't skip frame when |clock time| <= |mVideoFrameEndTime| for
// we are still in the safe range without underrunning video frames
GetClock() > mVideoFrameEndTime &&
(static_cast<uint32_t>(mReader->VideoQueue().GetSize())
< LOW_VIDEO_FRAMES * mPlaybackRate))) &&
!HasLowUndecodedData())

View File

@ -432,7 +432,6 @@ skip-if = buildapp == 'b2g' # b2g(Test timed out, bug 668973?) b2g-debug(Test ti
[test_reset_src.html]
[test_streams_autoplay.html]
[test_streams_element_capture.html]
skip-if = buildapp == 'b2g' # b2g(bug 900172 - timeouts) b2g-debug(bug 900172 - timeouts) b2g-desktop(bug 900172 - timeouts)
[test_streams_element_capture_reset.html]
skip-if = buildapp == 'b2g' # b2g(bug 901102) b2g-debug(bug 901102) b2g-desktop(bug 901102)
[test_streams_element_capture_createObjectURL.html]