Bug 787805 - Null check mInput in FileMediaResource::EnsureLengthInitialized(). r=roc

This commit is contained in:
Chris Pearce 2012-09-03 16:12:23 +12:00
parent bc572b9151
commit 0ec7cd264b

View File

@ -1031,7 +1031,7 @@ private:
void FileMediaResource::EnsureLengthInitialized()
{
mLock.AssertCurrentThreadOwns();
if (mSizeInitialized) {
if (mSizeInitialized || !mInput) {
return;
}
mSizeInitialized = true;