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; */