Bug 1283370. Part 7 - remove setting mNeedToStopPrerollingVideo per discussion in https://reviewboard.mozilla.org/r/43689/#comment54421. r=kaku
MozReview-Commit-ID: 4yj3EBH84OF
--- a/dom/media/NextFrameSeekTask.cpp
+++ b/dom/media/NextFrameSeekTask.cpp
@@ -348,21 +348,16 @@ NextFrameSeekTask::OnVideoNotDecoded(Med
RejectIfExist(__func__);
return;
}
// If the decoder is waiting for data, we tell it to call us back when the
// data arrives.
if (aReason == MediaDecoderReader::WAITING_FOR_DATA) {
mReader->WaitForData(MediaData::VIDEO_DATA);
-
- // We are out of data to decode and will enter buffering mode soon.
- // We want to play the frames we have already decoded, so we stop pre-rolling
- // and ensure that loadeddata is fired as required.
- mNeedToStopPrerollingVideo = true;
return;
}
if (aReason == MediaDecoderReader::CANCELED) {
EnsureVideoDecodeTaskQueued();
return;
}