From 600d021a057f4c2094482b4c604966f497b38d11 Mon Sep 17 00:00:00 2001 From: JW Wang Date: Tue, 3 Mar 2015 02:14:00 -0500 Subject: [PATCH] Bug 1138557 - Add null check to mLoadingSrc. r=karlt --HG-- extra : rebase_source : 521a2570029605e7c9e5388feb627ef3a30841a7 --- dom/html/HTMLMediaElement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/html/HTMLMediaElement.cpp b/dom/html/HTMLMediaElement.cpp index 3ff46148ffe3..2fc0b30815eb 100644 --- a/dom/html/HTMLMediaElement.cpp +++ b/dom/html/HTMLMediaElement.cpp @@ -3295,7 +3295,7 @@ void HTMLMediaElement::CheckProgress(bool aHaveNewProgress) if (now - mDataTime >= TimeDuration::FromMilliseconds(STALL_MS)) { DispatchAsyncEvent(NS_LITERAL_STRING("stalled")); - if (IsMediaSourceURI(mLoadingSrc)) { + if (mLoadingSrc && IsMediaSourceURI(mLoadingSrc)) { ChangeDelayLoadStatus(false); }