mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 13:56:29 +00:00
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:
parent
2010639f50
commit
3eae3b5916
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user