Bug 1303970: P1. MEDIA_ERR_ABORTED can be returned even if readyState is HAVE_NOTHING. r=jwwang
So change assertion accordingly. MozReview-Commit-ID: AuaDlyF0MAL
This commit is contained in:
@@ -4467,8 +4467,6 @@ void HTMLMediaElement::Error(uint16_t aErrorCode,
|
||||
aErrorCode == MEDIA_ERR_NETWORK ||
|
||||
aErrorCode == MEDIA_ERR_ABORTED,
|
||||
"Only use MediaError codes!");
|
||||
NS_ASSERTION(mReadyState > HAVE_NOTHING,
|
||||
"Shouldn't be called when readyState is HAVE_NOTHING");
|
||||
|
||||
// Since we have multiple paths calling into DecodeError, e.g.
|
||||
// MediaKeys::Terminated and EMEH264Decoder::Error. We should take the 1st
|
||||
|
||||
Reference in New Issue
Block a user