From d5431fa313e8704dffffe615f2ad428d648f28b4 Mon Sep 17 00:00:00 2001 From: "Byron Campen [:bwc]" Date: Fri, 16 Jan 2015 11:19:12 -0800 Subject: [PATCH] Bug 1122678: Fix behavior of SetMozSrcObject when passed a nullptr. r=derf --- dom/html/HTMLMediaElement.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dom/html/HTMLMediaElement.cpp b/dom/html/HTMLMediaElement.cpp index dcc106971127..b2192518105f 100644 --- a/dom/html/HTMLMediaElement.cpp +++ b/dom/html/HTMLMediaElement.cpp @@ -527,14 +527,14 @@ HTMLMediaElement::GetMozSrcObject() const void HTMLMediaElement::SetMozSrcObject(DOMMediaStream& aValue) { - mSrcAttrStream = &aValue; - Load(); + SetMozSrcObject(&aValue); } void HTMLMediaElement::SetMozSrcObject(DOMMediaStream* aValue) { - SetMozSrcObject(*aValue); + mSrcAttrStream = aValue; + Load(); } /* readonly attribute nsIDOMHTMLMediaElement mozAutoplayEnabled; */