Bug 1238343 - Update MDSM::mIsAudioPrerolling/mIsVideoPrerolling when playback rate changes. r=cpearce.

This commit is contained in:
JW Wang 2016-01-12 08:05:21 +08:00
parent ed071f6c7e
commit c9f4e17922

View File

@ -2768,6 +2768,13 @@ MediaDecoderStateMachine::LogicalPlaybackRateChanged()
mPlaybackRate = mLogicalPlaybackRate;
mMediaSink->SetPlaybackRate(mPlaybackRate);
if (mIsAudioPrerolling && DonePrerollingAudio()) {
StopPrerollingAudio();
}
if (mIsVideoPrerolling && DonePrerollingVideo()) {
StopPrerollingVideo();
}
ScheduleStateMachine();
}