mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 12:50:09 +00:00
Bug 483324. Don't create a decoder for loads that have already failed. r+sr=roc
--HG-- extra : rebase_source : 3a9cbe5b463f30bbddc9acf66b51325783b77b01
This commit is contained in:
parent
6c4d8b36fb
commit
d66eb0fa3e
@ -194,7 +194,16 @@ NS_IMPL_ISUPPORTS2(nsHTMLMediaElement::MediaLoadListener, nsIRequestObserver, ns
|
||||
|
||||
NS_IMETHODIMP nsHTMLMediaElement::MediaLoadListener::OnStartRequest(nsIRequest* aRequest, nsISupports* aContext)
|
||||
{
|
||||
nsresult rv = NS_OK;
|
||||
// Don't continue to load if the request failed or has been canceled.
|
||||
nsresult rv;
|
||||
nsresult status;
|
||||
rv = aRequest->GetStatus(&status);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
if (NS_FAILED(status)) {
|
||||
if (mElement)
|
||||
mElement->NotifyLoadError();
|
||||
return status;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIChannel> channel = do_QueryInterface(aRequest);
|
||||
if (channel &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user