diff --git a/layout/generic/nsVideoFrame.cpp b/layout/generic/nsVideoFrame.cpp index 4731a6968e4a..ac57e4099110 100644 --- a/layout/generic/nsVideoFrame.cpp +++ b/layout/generic/nsVideoFrame.cpp @@ -92,7 +92,8 @@ nsVideoFrame::CreateAnonymousContent(nsTArray& aElements) // And now have it update its internal state element->UpdateState(false); - UpdatePosterSource(false); + nsresult res = UpdatePosterSource(false); + NS_ENSURE_SUCCESS(res,res); if (!aElements.AppendElement(mPosterImage)) return NS_ERROR_OUT_OF_MEMORY; @@ -591,22 +592,20 @@ nsVideoFrame::GetVideoIntrinsicSize(nsRenderingContext *aRenderingContext) nsPresContext::CSSPixelsToAppUnits(size.height)); } -void +nsresult nsVideoFrame::UpdatePosterSource(bool aNotify) { NS_ASSERTION(HasVideoElement(), "Only call this on