Skip to content

Commit

Permalink
Bug 1175395: P1. Reject append promise early. r=kentuckyfriedtakahe
Browse files Browse the repository at this point in the history
So the next call to appendBuffer following an abort() is guaranteed to succeed.
  • Loading branch information
Jean-Yves Avenard committed Jun 19, 2015
1 parent 4941598 commit dee2c19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dom/media/mediasource/TrackBuffersManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ TrackBuffersManager::CompleteResetParserState()

// 7. Set append state to WAITING_FOR_SEGMENT.
SetAppendState(AppendState::WAITING_FOR_SEGMENT);

// Reject our promise immediately.
mAppendPromise.RejectIfExists(NS_ERROR_ABORT, __func__);
}

void
Expand Down

0 comments on commit dee2c19

Please sign in to comment.