From 0ec7cd264bfac3e7465fe0f0740e0db215ab5a41 Mon Sep 17 00:00:00 2001 From: Chris Pearce Date: Mon, 3 Sep 2012 16:12:23 +1200 Subject: [PATCH] Bug 787805 - Null check mInput in FileMediaResource::EnsureLengthInitialized(). r=roc --- content/media/MediaResource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/media/MediaResource.cpp b/content/media/MediaResource.cpp index 8a4b8779319..c860c5f4072 100644 --- a/content/media/MediaResource.cpp +++ b/content/media/MediaResource.cpp @@ -1031,7 +1031,7 @@ private: void FileMediaResource::EnsureLengthInitialized() { mLock.AssertCurrentThreadOwns(); - if (mSizeInitialized) { + if (mSizeInitialized || !mInput) { return; } mSizeInitialized = true;