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
Родитель 02da1fe1b4
Коммит 95bd4f71d1
2 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

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

Просмотреть файл

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