Bug 1283785. Part 2 - remove the IsVideoDecoding() check from EnsureVideoDecodeTaskQueued(). r=kaku
EnsureVideoDecodeTaskQueued() is always called when NeedMoreVideo() is true which
guarantees mIsVideoQueueFinished is false and IsVideoDecoding() is true.
MozReview-Commit-ID: BURhDl6vNXi
--- a/dom/media/NextFrameSeekTask.cpp
+++ b/dom/media/NextFrameSeekTask.cpp
@@ -130,23 +130,16 @@ NextFrameSeekTask::IsVideoDecoding() con
AssertOwnerThread();
return !mIsVideoQueueFinished;
}
void
NextFrameSeekTask::EnsureVideoDecodeTaskQueued()
{
AssertOwnerThread();
- SAMPLE_LOG("EnsureVideoDecodeTaskQueued isDecoding=%d status=%s",
- IsVideoDecoding(), VideoRequestStatus());
-
- if (!IsVideoDecoding()) {
- return;
- }
-
RequestVideoData();
}
const char*
NextFrameSeekTask::VideoRequestStatus()
{
AssertOwnerThread();