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

--HG--
extra : rebase_source : 60f1b34c8320d8ad47845bfd9d8f23e27d3a8620
This commit is contained in:
Jean-Yves Avenard 2016-09-20 19:36:09 +10:00
parent 2010639f50
commit 3eae3b5916

View File

@ -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