Skip to content

Commit

Permalink
Bug 1246521: [MSE] P3. Only error during Prepare Append algorithm if …
Browse files Browse the repository at this point in the history
…the media element is in error. r=gerald
  • Loading branch information
Jean-Yves Avenard committed Feb 8, 2016
1 parent c430574 commit 4daaafb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dom/media/mediasource/SourceBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,8 @@ SourceBuffer::PrepareAppend(const uint8_t* aData, uint32_t aLength, ErrorResult&
// If the HTMLMediaElement.error attribute is not null, then throw an
// InvalidStateError exception and abort these steps.
if (!mMediaSource->GetDecoder() ||
mMediaSource->GetDecoder()->IsEndedOrShutdown()) {
mMediaSource->GetDecoder()->OwnerHasError()) {
MSE_DEBUG("HTMLMediaElement.error is not null");
aRv.Throw(NS_ERROR_DOM_INVALID_STATE_ERR);
return nullptr;
}
Expand Down

0 comments on commit 4daaafb

Please sign in to comment.