Bug 1276530 - part2: The id of cue might be empty, so don't use it for checking. r=rillian

MozReview-Commit-ID: CyjEkOmDNG0
This commit is contained in:
bechen
2016-06-17 17:20:24 +08:00
parent bba3c11807
commit 3cdd14dfed
4 changed files with 11 additions and 8 deletions

View File

@@ -659,8 +659,7 @@ TextTrackManager::TimeMarchesOn()
// Step 11, 17.
for (uint32_t i = 0; i < otherCues->Length(); ++i) {
TextTrackCue* cue = (*otherCues)[i];
if (cue->GetActive() ||
missedCues->GetCueById(cue->Id()) != nullptr) {
if (cue->GetActive() || missedCues->IsCueExist(cue)) {
double time = cue->StartTime() > cue->EndTime() ? cue->StartTime()
: cue->EndTime();
SimpleTextTrackEvent* event =