Bug 1343161 - MediaDecoderOwner::DecodeWarning and HTMLMediaElement implementation - r=jya

Similar to DecodeError, except we allow decoding to continue.

MozReview-Commit-ID: FN9m03o6GXV
This commit is contained in:
Gerald Squelart
2017-02-27 12:12:37 +11:00
parent f0f4a75981
commit e49c0b5b9a
3 changed files with 18 additions and 0 deletions

View File

@@ -5286,6 +5286,14 @@ void HTMLMediaElement::DecodeError(const MediaResult& aError)
}
}
void HTMLMediaElement::DecodeWarning(const MediaResult& aError)
{
nsAutoString src;
GetCurrentSrc(src);
DecoderDoctorDiagnostics diagnostics;
diagnostics.StoreDecodeError(OwnerDoc(), aError, src, __func__);
}
bool HTMLMediaElement::HasError() const
{
return GetError();